beta

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 11 Imported by: 2

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. Package bigqueryreservation defines types and methods for working with bigqueryreservation GCP resources.

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. Package beta defines operations in the declarative SDK.

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

View Source
const AssignmentMaxPage = -1
View Source
const CapacityCommitmentMaxPage = -1
View Source
const ReservationMaxPage = -1

Variables

View Source
var YAML_assignment = []byte("info:\n  title: BigqueryReservation/Assignment\n  description: The BigqueryReservation Assignment resource\n  x-dcl-struct-name: Assignment\n  x-dcl-has-iam: false\npaths:\n  get:\n    description: The function used to get information about a Assignment\n    parameters:\n    - name: Assignment\n      required: true\n      description: A full instance of a Assignment\n  apply:\n    description: The function used to apply information about a Assignment\n    parameters:\n    - name: Assignment\n      required: true\n      description: A full instance of a Assignment\n  delete:\n    description: The function used to delete a Assignment\n    parameters:\n    - name: Assignment\n      required: true\n      description: A full instance of a Assignment\n  deleteAll:\n    description: The function used to delete all Assignment\n    parameters:\n    - name: project\n      required: true\n      schema:\n        type: string\n    - name: location\n      required: true\n      schema:\n        type: string\n    - name: reservation\n      required: true\n      schema:\n        type: string\n  list:\n    description: The function used to list information about many Assignment\n    parameters:\n    - name: project\n      required: true\n      schema:\n        type: string\n    - name: location\n      required: true\n      schema:\n        type: string\n    - name: reservation\n      required: true\n      schema:\n        type: string\ncomponents:\n  schemas:\n    Assignment:\n      title: Assignment\n      x-dcl-id: projects/{{project}}/locations/{{location}}/reservations/{{reservation}}/assignments/{{name}}\n      x-dcl-parent-container: project\n      x-dcl-has-iam: false\n      type: object\n      required:\n      - assignee\n      - jobType\n      - reservation\n      properties:\n        assignee:\n          type: string\n          x-dcl-go-name: Assignee\n          description: The resource which will use the reservation. E.g. projects/myproject,\n            folders/123, organizations/456.\n          x-kubernetes-immutable: true\n          x-dcl-references:\n          - resource: Cloudresourcemanager/Project\n            field: name\n          - resource: Cloudresourcemanager/Folder\n            field: name\n          - resource: Cloudresourcemanager/Organization\n            field: name\n        jobType:\n          type: string\n          x-dcl-go-name: JobType\n          x-dcl-go-type: AssignmentJobTypeEnum\n          description: 'Types of job, which could be specified when using the reservation.\n            Possible values: JOB_TYPE_UNSPECIFIED, PIPELINE, QUERY'\n          x-kubernetes-immutable: true\n          enum:\n          - JOB_TYPE_UNSPECIFIED\n          - PIPELINE\n          - QUERY\n        location:\n          type: string\n          x-dcl-go-name: Location\n          description: The location for the resource\n          x-kubernetes-immutable: true\n          x-dcl-extract-if-empty: true\n        name:\n          type: string\n          x-dcl-go-name: Name\n          description: Output only. The resource name of the assignment.\n          x-kubernetes-immutable: true\n          x-dcl-server-generated-parameter: true\n        project:\n          type: string\n          x-dcl-go-name: Project\n          description: The project for the resource\n          x-kubernetes-immutable: true\n          x-dcl-references:\n          - resource: Cloudresourcemanager/Project\n            field: name\n            parent: true\n          x-dcl-extract-if-empty: true\n        reservation:\n          type: string\n          x-dcl-go-name: Reservation\n          description: The reservation for the resource\n          x-kubernetes-immutable: true\n          x-dcl-references:\n          - resource: Bigqueryreservation/Reservation\n            field: name\n            parent: true\n        state:\n          type: string\n          x-dcl-go-name: State\n          x-dcl-go-type: AssignmentStateEnum\n          readOnly: true\n          description: 'Assignment will remain in PENDING state if no active capacity\n            commitment is present. It will become ACTIVE when some capacity commitment\n            becomes active. Possible values: STATE_UNSPECIFIED, PENDING, ACTIVE'\n          x-kubernetes-immutable: true\n          enum:\n          - STATE_UNSPECIFIED\n          - PENDING\n          - ACTIVE\n")

blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/bigqueryreservation/beta/assignment.yaml

View Source
var YAML_capacity_commitment = []byte("info:\n  title: BigqueryReservation/CapacityCommitment\n  description: The BigqueryReservation CapacityCommitment resource\n  x-dcl-struct-name: CapacityCommitment\n  x-dcl-has-iam: false\npaths:\n  get:\n    description: The function used to get information about a CapacityCommitment\n    parameters:\n    - name: CapacityCommitment\n      required: true\n      description: A full instance of a CapacityCommitment\n  apply:\n    description: The function used to apply information about a CapacityCommitment\n    parameters:\n    - name: CapacityCommitment\n      required: true\n      description: A full instance of a CapacityCommitment\n  delete:\n    description: The function used to delete a CapacityCommitment\n    parameters:\n    - name: CapacityCommitment\n      required: true\n      description: A full instance of a CapacityCommitment\n  deleteAll:\n    description: The function used to delete all CapacityCommitment\n    parameters:\n    - name: project\n      required: true\n      schema:\n        type: string\n    - name: location\n      required: true\n      schema:\n        type: string\n  list:\n    description: The function used to list information about many CapacityCommitment\n    parameters:\n    - name: project\n      required: true\n      schema:\n        type: string\n    - name: location\n      required: true\n      schema:\n        type: string\ncomponents:\n  schemas:\n    CapacityCommitment:\n      title: CapacityCommitment\n      x-dcl-id: projects/{{project}}/locations/{{location}}/capacityCommitments/{{name}}\n      x-dcl-parent-container: project\n      x-dcl-has-iam: false\n      type: object\n      required:\n      - project\n      - location\n      properties:\n        commitmentEndTime:\n          type: string\n          format: date-time\n          x-dcl-go-name: CommitmentEndTime\n          readOnly: true\n          description: Output only. The end of the current commitment period. It is\n            applicable only for ACTIVE capacity commitments.\n          x-kubernetes-immutable: true\n        commitmentStartTime:\n          type: string\n          format: date-time\n          x-dcl-go-name: CommitmentStartTime\n          readOnly: true\n          description: Output only. The start of the current commitment period. It\n            is applicable only for ACTIVE capacity commitments.\n          x-kubernetes-immutable: true\n        failureStatus:\n          type: object\n          x-dcl-go-name: FailureStatus\n          x-dcl-go-type: CapacityCommitmentFailureStatus\n          readOnly: true\n          description: Output only. For FAILED commitment plan, provides the reason\n            of failure.\n          x-kubernetes-immutable: true\n          properties:\n            code:\n              type: integer\n              format: int64\n              x-dcl-go-name: Code\n              description: The status code, which should be an enum value of google.rpc.Code.\n              x-kubernetes-immutable: true\n            details:\n              type: array\n              x-dcl-go-name: Details\n              description: A list of messages that carry the error details. There\n                is a common set of message types for APIs to use.\n              x-kubernetes-immutable: true\n              x-dcl-send-empty: true\n              x-dcl-list-type: list\n              items:\n                type: object\n                x-dcl-go-type: CapacityCommitmentFailureStatusDetails\n                properties:\n                  typeUrl:\n                    type: string\n                    x-dcl-go-name: TypeUrl\n                    description: 'A URL/resource name that uniquely identifies the\n                      type of the serialized protocol buffer message. This string\n                      must contain at least one \"/\" character. The last segment of\n                      the URL''s path must represent the fully qualified name of the\n                      type (as in `path/google.protobuf.Duration`). The name should\n                      be in a canonical form (e.g., leading \".\" is not accepted).\n                      In practice, teams usually precompile into the binary all types\n                      that they expect it to use in the context of Any. However, for\n                      URLs which use the scheme `http`, `https`, or no scheme, one\n                      can optionally set up a type server that maps type URLs to message\n                      definitions as follows: * If no scheme is provided, `https`\n                      is assumed. * An HTTP GET on the URL must yield a google.protobuf.Type\n                      value in binary format, or produce an error. * Applications\n                      are allowed to cache lookup results based on the URL, or have\n                      them precompiled into a binary to avoid any lookup. Therefore,\n                      binary compatibility needs to be preserved on changes to types.\n                      (Use versioned type names to manage breaking changes.) Note:\n                      this functionality is not currently available in the official\n                      protobuf release, and it is not used for type URLs beginning\n                      with type.googleapis.com. Schemes other than `http`, `https`\n                      (or the empty scheme) might be used with implementation specific\n                      semantics.'\n                    x-kubernetes-immutable: true\n                  value:\n                    type: string\n                    x-dcl-go-name: Value\n                    description: Must be a valid serialized protocol buffer of the\n                      above specified type.\n                    x-kubernetes-immutable: true\n            message:\n              type: string\n              x-dcl-go-name: Message\n              description: A developer-facing error message, which should be in English.\n                Any user-facing error message should be localized and sent in the\n                google.rpc.Status.details field, or localized by the client.\n              x-kubernetes-immutable: true\n        location:\n          type: string\n          x-dcl-go-name: Location\n          description: The location for the resource\n          x-kubernetes-immutable: true\n        name:\n          type: string\n          x-dcl-go-name: Name\n          description: The resource name of the capacity commitment, e.g., `projects/myproject/locations/US/capacityCommitments/123`\n          x-kubernetes-immutable: true\n          x-dcl-server-generated-parameter: true\n        plan:\n          type: string\n          x-dcl-go-name: Plan\n          x-dcl-go-type: CapacityCommitmentPlanEnum\n          description: 'Capacity commitment commitment plan. Possible values: COMMITMENT_PLAN_UNSPECIFIED,\n            FLEX, TRIAL, MONTHLY, ANNUAL'\n          enum:\n          - COMMITMENT_PLAN_UNSPECIFIED\n          - FLEX\n          - TRIAL\n          - MONTHLY\n          - ANNUAL\n        project:\n          type: string\n          x-dcl-go-name: Project\n          description: The project for the resource\n          x-kubernetes-immutable: true\n          x-dcl-references:\n          - resource: Cloudresourcemanager/Project\n            field: name\n            parent: true\n        renewalPlan:\n          type: string\n          x-dcl-go-name: RenewalPlan\n          x-dcl-go-type: CapacityCommitmentRenewalPlanEnum\n          description: 'The plan this capacity commitment is converted to after commitment_end_time\n            passes. Once the plan is changed, committed period is extended according\n            to commitment plan. Only applicable for ANNUAL and TRIAL commitments.\n            Possible values: COMMITMENT_PLAN_UNSPECIFIED, FLEX, TRIAL, MONTHLY, ANNUAL'\n          enum:\n          - COMMITMENT_PLAN_UNSPECIFIED\n          - FLEX\n          - TRIAL\n          - MONTHLY\n          - ANNUAL\n        slotCount:\n          type: integer\n          format: int64\n          x-dcl-go-name: SlotCount\n          description: Number of slots in this commitment.\n          x-kubernetes-immutable: true\n        state:\n          type: string\n          x-dcl-go-name: State\n          x-dcl-go-type: CapacityCommitmentStateEnum\n          readOnly: true\n          description: 'Output only. State of the commitment. Possible values: STATE_UNSPECIFIED,\n            PENDING, ACTIVE, FAILED'\n          x-kubernetes-immutable: true\n          enum:\n          - STATE_UNSPECIFIED\n          - PENDING\n          - ACTIVE\n          - FAILED\n")

blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/bigqueryreservation/beta/capacity_commitment.yaml

View Source
var YAML_reservation = []byte("info:\n  title: BigqueryReservation/Reservation\n  description: The BigqueryReservation Reservation resource\n  x-dcl-struct-name: Reservation\n  x-dcl-has-iam: false\npaths:\n  get:\n    description: The function used to get information about a Reservation\n    parameters:\n    - name: Reservation\n      required: true\n      description: A full instance of a Reservation\n  apply:\n    description: The function used to apply information about a Reservation\n    parameters:\n    - name: Reservation\n      required: true\n      description: A full instance of a Reservation\n  delete:\n    description: The function used to delete a Reservation\n    parameters:\n    - name: Reservation\n      required: true\n      description: A full instance of a Reservation\n  deleteAll:\n    description: The function used to delete all Reservation\n    parameters:\n    - name: project\n      required: true\n      schema:\n        type: string\n    - name: location\n      required: true\n      schema:\n        type: string\n  list:\n    description: The function used to list information about many Reservation\n    parameters:\n    - name: project\n      required: true\n      schema:\n        type: string\n    - name: location\n      required: true\n      schema:\n        type: string\ncomponents:\n  schemas:\n    Reservation:\n      title: Reservation\n      x-dcl-id: projects/{{project}}/locations/{{location}}/reservations/{{name}}\n      x-dcl-parent-container: project\n      x-dcl-has-iam: false\n      type: object\n      required:\n      - name\n      - project\n      - location\n      properties:\n        creationTime:\n          type: string\n          format: date-time\n          x-dcl-go-name: CreationTime\n          readOnly: true\n          description: Output only. Creation time of the reservation.\n          x-kubernetes-immutable: true\n        ignoreIdleSlots:\n          type: boolean\n          x-dcl-go-name: IgnoreIdleSlots\n          description: If false, any query using this reservation will use idle slots\n            from other reservations within the same admin project. If true, a query\n            using this reservation will execute with the slot capacity specified above\n            at most.\n        location:\n          type: string\n          x-dcl-go-name: Location\n          description: The location for the resource\n          x-kubernetes-immutable: true\n        maxConcurrency:\n          type: integer\n          format: int64\n          x-dcl-go-name: MaxConcurrency\n          description: Maximum number of queries that are allowed to run concurrently\n            in this reservation. Default value is 0 which means that maximum concurrency\n            will be automatically set based on the reservation size.\n        name:\n          type: string\n          x-dcl-go-name: Name\n          description: The resource name of the reservation.\n          x-kubernetes-immutable: true\n        project:\n          type: string\n          x-dcl-go-name: Project\n          description: The project for the resource\n          x-kubernetes-immutable: true\n          x-dcl-references:\n          - resource: Cloudresourcemanager/Project\n            field: name\n            parent: true\n        slotCapacity:\n          type: integer\n          format: int64\n          x-dcl-go-name: SlotCapacity\n          description: Minimum slots available to this reservation. A slot is a unit\n            of computational power in BigQuery, and serves as the unit of parallelism.\n            Queries using this reservation might use more slots during runtime if\n            ignore_idle_slots is set to false. If the new reservation's slot capacity\n            exceed the parent's slot capacity or if total slot capacity of the new\n            reservation and its siblings exceeds the parent's slot capacity, the request\n            will fail with `google.rpc.Code.RESOURCE_EXHAUSTED`.\n        updateTime:\n          type: string\n          format: date-time\n          x-dcl-go-name: UpdateTime\n          readOnly: true\n          description: Output only. Last update time of the reservation.\n          x-kubernetes-immutable: true\n")

blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/bigqueryreservation/beta/reservation.yaml

Functions

This section is empty.

Types

type Assignment

type Assignment struct {
	Name        *string                `json:"name"`
	Assignee    *string                `json:"assignee"`
	JobType     *AssignmentJobTypeEnum `json:"jobType"`
	State       *AssignmentStateEnum   `json:"state"`
	Project     *string                `json:"project"`
	Location    *string                `json:"location"`
	Reservation *string                `json:"reservation"`
}

func (*Assignment) Describe

func (r *Assignment) Describe() dcl.ServiceTypeVersion

Describe returns a simple description of this resource to ensure that automated tools can identify it.

func (*Assignment) ID

func (r *Assignment) ID() (string, error)

func (*Assignment) String

func (r *Assignment) String() string

type AssignmentJobTypeEnum

type AssignmentJobTypeEnum string

The enum AssignmentJobTypeEnum.

func AssignmentJobTypeEnumRef

func AssignmentJobTypeEnumRef(s string) *AssignmentJobTypeEnum

AssignmentJobTypeEnumRef returns a *AssignmentJobTypeEnum with the value of string s If the empty string is provided, nil is returned.

func (AssignmentJobTypeEnum) Validate

func (v AssignmentJobTypeEnum) Validate() error

type AssignmentList

type AssignmentList struct {
	Items []*Assignment
	// contains filtered or unexported fields
}

func (*AssignmentList) HasNext

func (l *AssignmentList) HasNext() bool

func (*AssignmentList) Next

func (l *AssignmentList) Next(ctx context.Context, c *Client) error

type AssignmentStateEnum

type AssignmentStateEnum string

The enum AssignmentStateEnum.

func AssignmentStateEnumRef

func AssignmentStateEnumRef(s string) *AssignmentStateEnum

AssignmentStateEnumRef returns a *AssignmentStateEnum with the value of string s If the empty string is provided, nil is returned.

func (AssignmentStateEnum) Validate

func (v AssignmentStateEnum) Validate() error

type CapacityCommitment

type CapacityCommitment struct {
	Name                *string                            `json:"name"`
	SlotCount           *int64                             `json:"slotCount"`
	Plan                *CapacityCommitmentPlanEnum        `json:"plan"`
	State               *CapacityCommitmentStateEnum       `json:"state"`
	CommitmentStartTime *string                            `json:"commitmentStartTime"`
	CommitmentEndTime   *string                            `json:"commitmentEndTime"`
	FailureStatus       *CapacityCommitmentFailureStatus   `json:"failureStatus"`
	RenewalPlan         *CapacityCommitmentRenewalPlanEnum `json:"renewalPlan"`
	Project             *string                            `json:"project"`
	Location            *string                            `json:"location"`
}

func (*CapacityCommitment) Describe

Describe returns a simple description of this resource to ensure that automated tools can identify it.

func (*CapacityCommitment) ID

func (r *CapacityCommitment) ID() (string, error)

func (*CapacityCommitment) String

func (r *CapacityCommitment) String() string

type CapacityCommitmentFailureStatus

type CapacityCommitmentFailureStatus struct {
	Code    *int64                                   `json:"code"`
	Message *string                                  `json:"message"`
	Details []CapacityCommitmentFailureStatusDetails `json:"details"`
	// contains filtered or unexported fields
}
var EmptyCapacityCommitmentFailureStatus *CapacityCommitmentFailureStatus = &CapacityCommitmentFailureStatus{empty: true}

This object is used to assert a desired state where this CapacityCommitmentFailureStatus is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*CapacityCommitmentFailureStatus) Empty

func (*CapacityCommitmentFailureStatus) HashCode

func (*CapacityCommitmentFailureStatus) String

func (*CapacityCommitmentFailureStatus) UnmarshalJSON

func (r *CapacityCommitmentFailureStatus) UnmarshalJSON(data []byte) error

type CapacityCommitmentFailureStatusDetails

type CapacityCommitmentFailureStatusDetails struct {
	TypeUrl *string `json:"typeUrl"`
	Value   *string `json:"value"`
	// contains filtered or unexported fields
}
var EmptyCapacityCommitmentFailureStatusDetails *CapacityCommitmentFailureStatusDetails = &CapacityCommitmentFailureStatusDetails{empty: true}

This object is used to assert a desired state where this CapacityCommitmentFailureStatusDetails is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.

func (*CapacityCommitmentFailureStatusDetails) Empty

func (*CapacityCommitmentFailureStatusDetails) HashCode

func (*CapacityCommitmentFailureStatusDetails) String

func (*CapacityCommitmentFailureStatusDetails) UnmarshalJSON

func (r *CapacityCommitmentFailureStatusDetails) UnmarshalJSON(data []byte) error

type CapacityCommitmentList

type CapacityCommitmentList struct {
	Items []*CapacityCommitment
	// contains filtered or unexported fields
}

func (*CapacityCommitmentList) HasNext

func (l *CapacityCommitmentList) HasNext() bool

func (*CapacityCommitmentList) Next

type CapacityCommitmentPlanEnum

type CapacityCommitmentPlanEnum string

The enum CapacityCommitmentPlanEnum.

func CapacityCommitmentPlanEnumRef

func CapacityCommitmentPlanEnumRef(s string) *CapacityCommitmentPlanEnum

CapacityCommitmentPlanEnumRef returns a *CapacityCommitmentPlanEnum with the value of string s If the empty string is provided, nil is returned.

func (CapacityCommitmentPlanEnum) Validate

func (v CapacityCommitmentPlanEnum) Validate() error

type CapacityCommitmentRenewalPlanEnum

type CapacityCommitmentRenewalPlanEnum string

The enum CapacityCommitmentRenewalPlanEnum.

func CapacityCommitmentRenewalPlanEnumRef

func CapacityCommitmentRenewalPlanEnumRef(s string) *CapacityCommitmentRenewalPlanEnum

CapacityCommitmentRenewalPlanEnumRef returns a *CapacityCommitmentRenewalPlanEnum with the value of string s If the empty string is provided, nil is returned.

func (CapacityCommitmentRenewalPlanEnum) Validate

type CapacityCommitmentStateEnum

type CapacityCommitmentStateEnum string

The enum CapacityCommitmentStateEnum.

func CapacityCommitmentStateEnumRef

func CapacityCommitmentStateEnumRef(s string) *CapacityCommitmentStateEnum

CapacityCommitmentStateEnumRef returns a *CapacityCommitmentStateEnum with the value of string s If the empty string is provided, nil is returned.

func (CapacityCommitmentStateEnum) Validate

func (v CapacityCommitmentStateEnum) Validate() error

type Client

type Client struct {
	Config *dcl.Config
}

The Client is the base struct of all operations. This will receive the Get, Delete, List, and Apply operations on all resources.

func NewClient

func NewClient(c *dcl.Config) *Client

NewClient creates a client that retries all operations a few times each.

func (*Client) ApplyAssignment

func (c *Client) ApplyAssignment(ctx context.Context, rawDesired *Assignment, opts ...dcl.ApplyOption) (*Assignment, error)

func (*Client) ApplyCapacityCommitment

func (c *Client) ApplyCapacityCommitment(ctx context.Context, rawDesired *CapacityCommitment, opts ...dcl.ApplyOption) (*CapacityCommitment, error)

func (*Client) ApplyReservation

func (c *Client) ApplyReservation(ctx context.Context, rawDesired *Reservation, opts ...dcl.ApplyOption) (*Reservation, error)

func (*Client) DeleteAllAssignment

func (c *Client) DeleteAllAssignment(ctx context.Context, project, location, reservation string, filter func(*Assignment) bool) error

DeleteAllAssignment deletes all resources that the filter functions returns true on.

func (*Client) DeleteAllCapacityCommitment

func (c *Client) DeleteAllCapacityCommitment(ctx context.Context, project, location string, filter func(*CapacityCommitment) bool) error

DeleteAllCapacityCommitment deletes all resources that the filter functions returns true on.

func (*Client) DeleteAllReservation

func (c *Client) DeleteAllReservation(ctx context.Context, project, location string, filter func(*Reservation) bool) error

DeleteAllReservation deletes all resources that the filter functions returns true on.

func (*Client) DeleteAssignment

func (c *Client) DeleteAssignment(ctx context.Context, r *Assignment) error

func (*Client) DeleteCapacityCommitment

func (c *Client) DeleteCapacityCommitment(ctx context.Context, r *CapacityCommitment) error

func (*Client) DeleteReservation

func (c *Client) DeleteReservation(ctx context.Context, r *Reservation) error

func (*Client) GetAssignment

func (c *Client) GetAssignment(ctx context.Context, r *Assignment) (*Assignment, error)

func (*Client) GetCapacityCommitment

func (c *Client) GetCapacityCommitment(ctx context.Context, r *CapacityCommitment) (*CapacityCommitment, error)

func (*Client) GetReservation

func (c *Client) GetReservation(ctx context.Context, r *Reservation) (*Reservation, error)

func (*Client) ListAssignment

func (c *Client) ListAssignment(ctx context.Context, project, location, reservation string) (*AssignmentList, error)

func (*Client) ListAssignmentWithMaxResults

func (c *Client) ListAssignmentWithMaxResults(ctx context.Context, project, location, reservation string, pageSize int32) (*AssignmentList, error)

func (*Client) ListCapacityCommitment

func (c *Client) ListCapacityCommitment(ctx context.Context, project, location string) (*CapacityCommitmentList, error)

func (*Client) ListCapacityCommitmentWithMaxResults

func (c *Client) ListCapacityCommitmentWithMaxResults(ctx context.Context, project, location string, pageSize int32) (*CapacityCommitmentList, error)

func (*Client) ListReservation

func (c *Client) ListReservation(ctx context.Context, project, location string) (*ReservationList, error)

func (*Client) ListReservationWithMaxResults

func (c *Client) ListReservationWithMaxResults(ctx context.Context, project, location string, pageSize int32) (*ReservationList, error)

type Reservation

type Reservation struct {
	Name            *string `json:"name"`
	SlotCapacity    *int64  `json:"slotCapacity"`
	IgnoreIdleSlots *bool   `json:"ignoreIdleSlots"`
	CreationTime    *string `json:"creationTime"`
	UpdateTime      *string `json:"updateTime"`
	MaxConcurrency  *int64  `json:"maxConcurrency"`
	Project         *string `json:"project"`
	Location        *string `json:"location"`
}

func (*Reservation) Describe

func (r *Reservation) Describe() dcl.ServiceTypeVersion

Describe returns a simple description of this resource to ensure that automated tools can identify it.

func (*Reservation) ID

func (r *Reservation) ID() (string, error)

func (*Reservation) String

func (r *Reservation) String() string

type ReservationList

type ReservationList struct {
	Items []*Reservation
	// contains filtered or unexported fields
}

func (*ReservationList) HasNext

func (l *ReservationList) HasNext() bool

func (*ReservationList) Next

func (l *ReservationList) Next(ctx context.Context, c *Client) error

Jump to

Keyboard shortcuts

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