...

Package logging

import "google.golang.org/genproto/googleapis/cloud/cloudsetup/logging/v1"
Overview
Index

Overview ▾

Index ▾

Variables
type CompleteDeploymentEvent
    func (*CompleteDeploymentEvent) Descriptor() ([]byte, []int)
    func (x *CompleteDeploymentEvent) GetError() *status.Status
    func (x *CompleteDeploymentEvent) GetPreviewOnly() bool
    func (m *CompleteDeploymentEvent) GetResult() isCompleteDeploymentEvent_Result
    func (x *CompleteDeploymentEvent) GetState() CompleteDeploymentEvent_State
    func (x *CompleteDeploymentEvent) GetValue() *CompleteDeploymentResult
    func (*CompleteDeploymentEvent) ProtoMessage()
    func (x *CompleteDeploymentEvent) ProtoReflect() protoreflect.Message
    func (x *CompleteDeploymentEvent) Reset()
    func (x *CompleteDeploymentEvent) String() string
type CompleteDeploymentEvent_Error
type CompleteDeploymentEvent_State
    func (CompleteDeploymentEvent_State) Descriptor() protoreflect.EnumDescriptor
    func (x CompleteDeploymentEvent_State) Enum() *CompleteDeploymentEvent_State
    func (CompleteDeploymentEvent_State) EnumDescriptor() ([]byte, []int)
    func (x CompleteDeploymentEvent_State) Number() protoreflect.EnumNumber
    func (x CompleteDeploymentEvent_State) String() string
    func (CompleteDeploymentEvent_State) Type() protoreflect.EnumType
type CompleteDeploymentEvent_Value
type CompleteDeploymentResult
    func (*CompleteDeploymentResult) Descriptor() ([]byte, []int)
    func (x *CompleteDeploymentResult) GetDeployment() string
    func (x *CompleteDeploymentResult) GetMessage() string
    func (x *CompleteDeploymentResult) GetPreview() string
    func (*CompleteDeploymentResult) ProtoMessage()
    func (x *CompleteDeploymentResult) ProtoReflect() protoreflect.Message
    func (x *CompleteDeploymentResult) Reset()
    func (x *CompleteDeploymentResult) String() string

Package files

complete_deployment.pb.go

Variables

Enum value maps for CompleteDeploymentEvent_State.

var (
    CompleteDeploymentEvent_State_name = map[int32]string{
        0: "STATE_UNSPECIFIED",
        1: "SUCCEEDED",
        2: "FAILED",
    }
    CompleteDeploymentEvent_State_value = map[string]int32{
        "STATE_UNSPECIFIED": 0,
        "SUCCEEDED":         1,
        "FAILED":            2,
    }
)
var File_google_cloud_cloudsetup_logging_v1_complete_deployment_proto protoreflect.FileDescriptor

type CompleteDeploymentEvent

JSON payload for the Cloud Logging event: `organizations/[organizationId]/logs/cloudsetup.googleapis.com%2Fcomplete_deployment`. This event gets emitted upon completion of a config deployment as part of the Cloud Setup Checklist.

The deployment can fail even if it returns a `config.googleapis.com/Deployment`. The state of that message will be `FAILED`. Hence, if there is a `value` present, the `state` can still be, `FAILED`. The message for the error or failure will be on the `error` or the `value` if the Operation results in an error or if the `state` of the Deployment is `FAILED`, respectively.

type CompleteDeploymentEvent struct {

    // Types that are assignable to Result:
    //	*CompleteDeploymentEvent_Value
    //	*CompleteDeploymentEvent_Error
    Result isCompleteDeploymentEvent_Result `protobuf_oneof:"result"`
    // The `state` of this deployment completion event.
    State CompleteDeploymentEvent_State `protobuf:"varint,3,opt,name=state,proto3,enum=google.cloud.cloudsetup.logging.v1.CompleteDeploymentEvent_State" json:"state,omitempty"`
    // Flag to indicate if deployment is preview only.
    PreviewOnly bool `protobuf:"varint,4,opt,name=preview_only,json=previewOnly,proto3" json:"preview_only,omitempty"`
    // contains filtered or unexported fields
}

func (*CompleteDeploymentEvent) Descriptor

func (*CompleteDeploymentEvent) Descriptor() ([]byte, []int)

Deprecated: Use CompleteDeploymentEvent.ProtoReflect.Descriptor instead.

func (*CompleteDeploymentEvent) GetError

func (x *CompleteDeploymentEvent) GetError() *status.Status

func (*CompleteDeploymentEvent) GetPreviewOnly

func (x *CompleteDeploymentEvent) GetPreviewOnly() bool

func (*CompleteDeploymentEvent) GetResult

func (m *CompleteDeploymentEvent) GetResult() isCompleteDeploymentEvent_Result

func (*CompleteDeploymentEvent) GetState

func (x *CompleteDeploymentEvent) GetState() CompleteDeploymentEvent_State

func (*CompleteDeploymentEvent) GetValue

func (x *CompleteDeploymentEvent) GetValue() *CompleteDeploymentResult

func (*CompleteDeploymentEvent) ProtoMessage

func (*CompleteDeploymentEvent) ProtoMessage()

func (*CompleteDeploymentEvent) ProtoReflect

func (x *CompleteDeploymentEvent) ProtoReflect() protoreflect.Message

func (*CompleteDeploymentEvent) Reset

func (x *CompleteDeploymentEvent) Reset()

func (*CompleteDeploymentEvent) String

func (x *CompleteDeploymentEvent) String() string

type CompleteDeploymentEvent_Error

type CompleteDeploymentEvent_Error struct {
    // Result of the Deployment if the `Operation` results in an error.
    Error *status.Status `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
}

type CompleteDeploymentEvent_State

State of the completed deployment.

type CompleteDeploymentEvent_State int32
const (
    // The zero value. It is applied when `state` is unset. Do not use.
    CompleteDeploymentEvent_STATE_UNSPECIFIED CompleteDeploymentEvent_State = 0
    // Indicates that a Deployment value was present when the config deployment
    // finished and the State was anything other than FAILED.
    CompleteDeploymentEvent_SUCCEEDED CompleteDeploymentEvent_State = 1
    // Indicates that the Operation result was an error or the Deployment
    // `state` was FAILED.
    CompleteDeploymentEvent_FAILED CompleteDeploymentEvent_State = 2
)

func (CompleteDeploymentEvent_State) Descriptor

func (CompleteDeploymentEvent_State) Descriptor() protoreflect.EnumDescriptor

func (CompleteDeploymentEvent_State) Enum

func (x CompleteDeploymentEvent_State) Enum() *CompleteDeploymentEvent_State

func (CompleteDeploymentEvent_State) EnumDescriptor

func (CompleteDeploymentEvent_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use CompleteDeploymentEvent_State.Descriptor instead.

func (CompleteDeploymentEvent_State) Number

func (x CompleteDeploymentEvent_State) Number() protoreflect.EnumNumber

func (CompleteDeploymentEvent_State) String

func (x CompleteDeploymentEvent_State) String() string

func (CompleteDeploymentEvent_State) Type

func (CompleteDeploymentEvent_State) Type() protoreflect.EnumType

type CompleteDeploymentEvent_Value

type CompleteDeploymentEvent_Value struct {
    // Result of the Deployment recorded upon completion.
    Value *CompleteDeploymentResult `protobuf:"bytes,1,opt,name=value,proto3,oneof"`
}

type CompleteDeploymentResult

This message is used when the CompleteDeploymentEvent has a value.

type CompleteDeploymentResult struct {

    // This is the Deployment that completed.
    // Format is projects/{project}/locations/{location}/deployments/{name}.
    Deployment string `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
    // This is the Preview that completed.
    // Format is projects/{project}/locations/{location}/previews/{preview}
    Preview string `protobuf:"bytes,3,opt,name=preview,proto3" json:"preview,omitempty"`
    // The message that is returned when a deployment completes. This **can** be
    // an error message if the `Deployment` `state` is `FAILED`.
    Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
    // contains filtered or unexported fields
}

func (*CompleteDeploymentResult) Descriptor

func (*CompleteDeploymentResult) Descriptor() ([]byte, []int)

Deprecated: Use CompleteDeploymentResult.ProtoReflect.Descriptor instead.

func (*CompleteDeploymentResult) GetDeployment

func (x *CompleteDeploymentResult) GetDeployment() string

func (*CompleteDeploymentResult) GetMessage

func (x *CompleteDeploymentResult) GetMessage() string

func (*CompleteDeploymentResult) GetPreview

func (x *CompleteDeploymentResult) GetPreview() string

func (*CompleteDeploymentResult) ProtoMessage

func (*CompleteDeploymentResult) ProtoMessage()

func (*CompleteDeploymentResult) ProtoReflect

func (x *CompleteDeploymentResult) ProtoReflect() protoreflect.Message

func (*CompleteDeploymentResult) Reset

func (x *CompleteDeploymentResult) Reset()

func (*CompleteDeploymentResult) String

func (x *CompleteDeploymentResult) String() string