v1

package
v0.0.0-...-ae3c806 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Notification_Create_FullMethodName  = "/spaceone.api.notification.v1.Notification/create"
	Notification_Push_FullMethodName    = "/spaceone.api.notification.v1.Notification/push"
	Notification_Delete_FullMethodName  = "/spaceone.api.notification.v1.Notification/delete"
	Notification_SetRead_FullMethodName = "/spaceone.api.notification.v1.Notification/set_read"
	Notification_Get_FullMethodName     = "/spaceone.api.notification.v1.Notification/get"
	Notification_List_FullMethodName    = "/spaceone.api.notification.v1.Notification/list"
	Notification_Stat_FullMethodName    = "/spaceone.api.notification.v1.Notification/stat"
)
View Source
const (
	ProjectChannel_Create_FullMethodName          = "/spaceone.api.notification.v1.ProjectChannel/create"
	ProjectChannel_Update_FullMethodName          = "/spaceone.api.notification.v1.ProjectChannel/update"
	ProjectChannel_SetSchedule_FullMethodName     = "/spaceone.api.notification.v1.ProjectChannel/set_schedule"
	ProjectChannel_SetSubscription_FullMethodName = "/spaceone.api.notification.v1.ProjectChannel/set_subscription"
	ProjectChannel_Enable_FullMethodName          = "/spaceone.api.notification.v1.ProjectChannel/enable"
	ProjectChannel_Disable_FullMethodName         = "/spaceone.api.notification.v1.ProjectChannel/disable"
	ProjectChannel_Delete_FullMethodName          = "/spaceone.api.notification.v1.ProjectChannel/delete"
	ProjectChannel_Get_FullMethodName             = "/spaceone.api.notification.v1.ProjectChannel/get"
	ProjectChannel_List_FullMethodName            = "/spaceone.api.notification.v1.ProjectChannel/list"
	ProjectChannel_Stat_FullMethodName            = "/spaceone.api.notification.v1.ProjectChannel/stat"
)
View Source
const (
	Protocol_Create_FullMethodName       = "/spaceone.api.notification.v1.Protocol/create"
	Protocol_Update_FullMethodName       = "/spaceone.api.notification.v1.Protocol/update"
	Protocol_UpdatePlugin_FullMethodName = "/spaceone.api.notification.v1.Protocol/update_plugin"
	Protocol_Enable_FullMethodName       = "/spaceone.api.notification.v1.Protocol/enable"
	Protocol_Disable_FullMethodName      = "/spaceone.api.notification.v1.Protocol/disable"
	Protocol_Delete_FullMethodName       = "/spaceone.api.notification.v1.Protocol/delete"
	Protocol_Get_FullMethodName          = "/spaceone.api.notification.v1.Protocol/get"
	Protocol_List_FullMethodName         = "/spaceone.api.notification.v1.Protocol/list"
	Protocol_Stat_FullMethodName         = "/spaceone.api.notification.v1.Protocol/stat"
)
View Source
const (
	UserChannel_Create_FullMethodName          = "/spaceone.api.notification.v1.UserChannel/create"
	UserChannel_Update_FullMethodName          = "/spaceone.api.notification.v1.UserChannel/update"
	UserChannel_SetSchedule_FullMethodName     = "/spaceone.api.notification.v1.UserChannel/set_schedule"
	UserChannel_SetSubscription_FullMethodName = "/spaceone.api.notification.v1.UserChannel/set_subscription"
	UserChannel_Enable_FullMethodName          = "/spaceone.api.notification.v1.UserChannel/enable"
	UserChannel_Disable_FullMethodName         = "/spaceone.api.notification.v1.UserChannel/disable"
	UserChannel_Delete_FullMethodName          = "/spaceone.api.notification.v1.UserChannel/delete"
	UserChannel_Get_FullMethodName             = "/spaceone.api.notification.v1.UserChannel/get"
	UserChannel_List_FullMethodName            = "/spaceone.api.notification.v1.UserChannel/list"
	UserChannel_Stat_FullMethodName            = "/spaceone.api.notification.v1.UserChannel/stat"
)

Variables

View Source
var (
	CreateNotificationRequest_NotificationType_name = map[int32]string{
		0: "NOTIFICATION_TYPE_NONE",
		1: "INFO",
		2: "ERROR",
		3: "SUCCESS",
		4: "WARNING",
	}
	CreateNotificationRequest_NotificationType_value = map[string]int32{
		"NOTIFICATION_TYPE_NONE": 0,
		"INFO":                   1,
		"ERROR":                  2,
		"SUCCESS":                3,
		"WARNING":                4,
	}
)

Enum value maps for CreateNotificationRequest_NotificationType.

View Source
var (
	CreateNotificationRequest_NotificationLEVEL_name = map[int32]string{
		0: "NONE",
		1: "ALL",
		2: "LV1",
		3: "LV2",
		4: "LV3",
		5: "LV4",
		6: "LV5",
	}
	CreateNotificationRequest_NotificationLEVEL_value = map[string]int32{
		"NONE": 0,
		"ALL":  1,
		"LV1":  2,
		"LV2":  3,
		"LV3":  4,
		"LV4":  5,
		"LV5":  6,
	}
)

Enum value maps for CreateNotificationRequest_NotificationLEVEL.

View Source
var (
	NotificationQuery_NotificationType_name = map[int32]string{
		0: "NOTIFICATION_TYPE_NONE",
		1: "INFO",
		2: "ERROR",
		3: "SUCCESS",
		4: "WARNING",
	}
	NotificationQuery_NotificationType_value = map[string]int32{
		"NOTIFICATION_TYPE_NONE": 0,
		"INFO":                   1,
		"ERROR":                  2,
		"SUCCESS":                3,
		"WARNING":                4,
	}
)

Enum value maps for NotificationQuery_NotificationType.

View Source
var (
	NotificationQuery_NotificationLEVEL_name = map[int32]string{
		0: "NONE",
		1: "ALL",
		2: "LV1",
		3: "LV2",
		4: "LV3",
		5: "LV4",
		6: "LV5",
	}
	NotificationQuery_NotificationLEVEL_value = map[string]int32{
		"NONE": 0,
		"ALL":  1,
		"LV1":  2,
		"LV2":  3,
		"LV3":  4,
		"LV4":  5,
		"LV5":  6,
	}
)

Enum value maps for NotificationQuery_NotificationLEVEL.

View Source
var (
	NotificationInfo_NotificationType_name = map[int32]string{
		0: "NOTIFICATION_TYPE_NONE",
		1: "INFO",
		2: "ERROR",
		3: "SUCCESS",
		4: "WARNING",
	}
	NotificationInfo_NotificationType_value = map[string]int32{
		"NOTIFICATION_TYPE_NONE": 0,
		"INFO":                   1,
		"ERROR":                  2,
		"SUCCESS":                3,
		"WARNING":                4,
	}
)

Enum value maps for NotificationInfo_NotificationType.

View Source
var (
	NotificationInfo_NotificationLEVEL_name = map[int32]string{
		0: "NONE",
		1: "ALL",
		2: "LV1",
		3: "LV2",
		4: "LV3",
		5: "LV4",
		6: "LV5",
	}
	NotificationInfo_NotificationLEVEL_value = map[string]int32{
		"NONE": 0,
		"ALL":  1,
		"LV1":  2,
		"LV2":  3,
		"LV3":  4,
		"LV4":  5,
		"LV5":  6,
	}
)

Enum value maps for NotificationInfo_NotificationLEVEL.

View Source
var (
	NotificationLevel_name = map[int32]string{
		0: "NONE",
		1: "LV1",
		2: "LV2",
		3: "LV3",
		4: "LV4",
		5: "LV5",
	}
	NotificationLevel_value = map[string]int32{
		"NONE": 0,
		"LV1":  1,
		"LV2":  2,
		"LV3":  3,
		"LV4":  4,
		"LV5":  5,
	}
)

Enum value maps for NotificationLevel.

View Source
var (
	ProjectChannelSchedule_DayOfWeek_name = map[int32]string{
		0: "NONE",
		1: "MON",
		2: "TUE",
		3: "WED",
		4: "THU",
		5: "FRI",
		6: "SAT",
		7: "SUN",
	}
	ProjectChannelSchedule_DayOfWeek_value = map[string]int32{
		"NONE": 0,
		"MON":  1,
		"TUE":  2,
		"WED":  3,
		"THU":  4,
		"FRI":  5,
		"SAT":  6,
		"SUN":  7,
	}
)

Enum value maps for ProjectChannelSchedule_DayOfWeek.

View Source
var (
	ProjectChannelQuery_ProjectChannelState_name = map[int32]string{
		0: "NONE",
		1: "ENABLED",
		2: "DISABLED",
	}
	ProjectChannelQuery_ProjectChannelState_value = map[string]int32{
		"NONE":     0,
		"ENABLED":  1,
		"DISABLED": 2,
	}
)

Enum value maps for ProjectChannelQuery_ProjectChannelState.

View Source
var (
	ProjectChannelInfo_ProjectChannelState_name = map[int32]string{
		0: "NONE",
		1: "ENABLED",
		2: "DISABLED",
	}
	ProjectChannelInfo_ProjectChannelState_value = map[string]int32{
		"NONE":     0,
		"ENABLED":  1,
		"DISABLED": 2,
	}
)

Enum value maps for ProjectChannelInfo_ProjectChannelState.

View Source
var (
	PluginRequest_UpgradeMode_name = map[int32]string{
		0: "NONE",
		1: "AUTO",
		2: "MANUAL",
	}
	PluginRequest_UpgradeMode_value = map[string]int32{
		"NONE":   0,
		"AUTO":   1,
		"MANUAL": 2,
	}
)

Enum value maps for PluginRequest_UpgradeMode.

View Source
var (
	PluginInfo_UpgradeMode_name = map[int32]string{
		0: "NONE",
		1: "AUTO",
		2: "MANUAL",
	}
	PluginInfo_UpgradeMode_value = map[string]int32{
		"NONE":   0,
		"AUTO":   1,
		"MANUAL": 2,
	}
)

Enum value maps for PluginInfo_UpgradeMode.

View Source
var (
	ProtocolQuery_ProtocolState_name = map[int32]string{
		0: "NONE",
		1: "ENABLED",
		2: "DISABLED",
	}
	ProtocolQuery_ProtocolState_value = map[string]int32{
		"NONE":     0,
		"ENABLED":  1,
		"DISABLED": 2,
	}
)

Enum value maps for ProtocolQuery_ProtocolState.

View Source
var (
	ProtocolQuery_ProtocolType_name = map[int32]string{
		0: "PROTOCOL_TYPE_NONE",
		1: "INTERNAL",
		2: "EXTERNAL",
	}
	ProtocolQuery_ProtocolType_value = map[string]int32{
		"PROTOCOL_TYPE_NONE": 0,
		"INTERNAL":           1,
		"EXTERNAL":           2,
	}
)

Enum value maps for ProtocolQuery_ProtocolType.

View Source
var (
	ProtocolInfo_ProtocolState_name = map[int32]string{
		0: "NONE",
		1: "ENABLED",
		2: "DISABLED",
	}
	ProtocolInfo_ProtocolState_value = map[string]int32{
		"NONE":     0,
		"ENABLED":  1,
		"DISABLED": 2,
	}
)

Enum value maps for ProtocolInfo_ProtocolState.

View Source
var (
	ProtocolInfo_ProtocolType_name = map[int32]string{
		0: "PROTOCOL_TYPE_NONE",
		1: "INTERNAL",
		2: "EXTERNAL",
	}
	ProtocolInfo_ProtocolType_value = map[string]int32{
		"PROTOCOL_TYPE_NONE": 0,
		"INTERNAL":           1,
		"EXTERNAL":           2,
	}
)

Enum value maps for ProtocolInfo_ProtocolType.

View Source
var (
	UserChannelSchedule_DayOfWeek_name = map[int32]string{
		0: "NONE",
		1: "MON",
		2: "TUE",
		3: "WED",
		4: "THU",
		5: "FRI",
		6: "SAT",
		7: "SUN",
	}
	UserChannelSchedule_DayOfWeek_value = map[string]int32{
		"NONE": 0,
		"MON":  1,
		"TUE":  2,
		"WED":  3,
		"THU":  4,
		"FRI":  5,
		"SAT":  6,
		"SUN":  7,
	}
)

Enum value maps for UserChannelSchedule_DayOfWeek.

View Source
var (
	UserChannelQuery_UserChannelState_name = map[int32]string{
		0: "NONE",
		1: "ENABLED",
		2: "DISABLED",
	}
	UserChannelQuery_UserChannelState_value = map[string]int32{
		"NONE":     0,
		"ENABLED":  1,
		"DISABLED": 2,
	}
)

Enum value maps for UserChannelQuery_UserChannelState.

View Source
var (
	UserChannelInfo_UserChannelState_name = map[int32]string{
		0: "NONE",
		1: "ENABLED",
		2: "DISABLED",
	}
	UserChannelInfo_UserChannelState_value = map[string]int32{
		"NONE":     0,
		"ENABLED":  1,
		"DISABLED": 2,
	}
)

Enum value maps for UserChannelInfo_UserChannelState.

View Source
var File_spaceone_api_notification_v1_notification_proto protoreflect.FileDescriptor
View Source
var File_spaceone_api_notification_v1_project_channel_proto protoreflect.FileDescriptor
View Source
var File_spaceone_api_notification_v1_protocol_proto protoreflect.FileDescriptor
View Source
var File_spaceone_api_notification_v1_user_channel_proto protoreflect.FileDescriptor
View Source
var Notification_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spaceone.api.notification.v1.Notification",
	HandlerType: (*NotificationServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "create",
			Handler:    _Notification_Create_Handler,
		},
		{
			MethodName: "push",
			Handler:    _Notification_Push_Handler,
		},
		{
			MethodName: "delete",
			Handler:    _Notification_Delete_Handler,
		},
		{
			MethodName: "set_read",
			Handler:    _Notification_SetRead_Handler,
		},
		{
			MethodName: "get",
			Handler:    _Notification_Get_Handler,
		},
		{
			MethodName: "list",
			Handler:    _Notification_List_Handler,
		},
		{
			MethodName: "stat",
			Handler:    _Notification_Stat_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spaceone/api/notification/v1/notification.proto",
}

Notification_ServiceDesc is the grpc.ServiceDesc for Notification service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ProjectChannel_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spaceone.api.notification.v1.ProjectChannel",
	HandlerType: (*ProjectChannelServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "create",
			Handler:    _ProjectChannel_Create_Handler,
		},
		{
			MethodName: "update",
			Handler:    _ProjectChannel_Update_Handler,
		},
		{
			MethodName: "set_schedule",
			Handler:    _ProjectChannel_SetSchedule_Handler,
		},
		{
			MethodName: "set_subscription",
			Handler:    _ProjectChannel_SetSubscription_Handler,
		},
		{
			MethodName: "enable",
			Handler:    _ProjectChannel_Enable_Handler,
		},
		{
			MethodName: "disable",
			Handler:    _ProjectChannel_Disable_Handler,
		},
		{
			MethodName: "delete",
			Handler:    _ProjectChannel_Delete_Handler,
		},
		{
			MethodName: "get",
			Handler:    _ProjectChannel_Get_Handler,
		},
		{
			MethodName: "list",
			Handler:    _ProjectChannel_List_Handler,
		},
		{
			MethodName: "stat",
			Handler:    _ProjectChannel_Stat_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spaceone/api/notification/v1/project_channel.proto",
}

ProjectChannel_ServiceDesc is the grpc.ServiceDesc for ProjectChannel service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Protocol_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spaceone.api.notification.v1.Protocol",
	HandlerType: (*ProtocolServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "create",
			Handler:    _Protocol_Create_Handler,
		},
		{
			MethodName: "update",
			Handler:    _Protocol_Update_Handler,
		},
		{
			MethodName: "update_plugin",
			Handler:    _Protocol_UpdatePlugin_Handler,
		},
		{
			MethodName: "enable",
			Handler:    _Protocol_Enable_Handler,
		},
		{
			MethodName: "disable",
			Handler:    _Protocol_Disable_Handler,
		},
		{
			MethodName: "delete",
			Handler:    _Protocol_Delete_Handler,
		},
		{
			MethodName: "get",
			Handler:    _Protocol_Get_Handler,
		},
		{
			MethodName: "list",
			Handler:    _Protocol_List_Handler,
		},
		{
			MethodName: "stat",
			Handler:    _Protocol_Stat_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spaceone/api/notification/v1/protocol.proto",
}

Protocol_ServiceDesc is the grpc.ServiceDesc for Protocol service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var UserChannel_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spaceone.api.notification.v1.UserChannel",
	HandlerType: (*UserChannelServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "create",
			Handler:    _UserChannel_Create_Handler,
		},
		{
			MethodName: "update",
			Handler:    _UserChannel_Update_Handler,
		},
		{
			MethodName: "set_schedule",
			Handler:    _UserChannel_SetSchedule_Handler,
		},
		{
			MethodName: "set_subscription",
			Handler:    _UserChannel_SetSubscription_Handler,
		},
		{
			MethodName: "enable",
			Handler:    _UserChannel_Enable_Handler,
		},
		{
			MethodName: "disable",
			Handler:    _UserChannel_Disable_Handler,
		},
		{
			MethodName: "delete",
			Handler:    _UserChannel_Delete_Handler,
		},
		{
			MethodName: "get",
			Handler:    _UserChannel_Get_Handler,
		},
		{
			MethodName: "list",
			Handler:    _UserChannel_List_Handler,
		},
		{
			MethodName: "stat",
			Handler:    _UserChannel_Stat_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spaceone/api/notification/v1/user_channel.proto",
}

UserChannel_ServiceDesc is the grpc.ServiceDesc for UserChannel service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterNotificationServer

func RegisterNotificationServer(s grpc.ServiceRegistrar, srv NotificationServer)

func RegisterProjectChannelServer

func RegisterProjectChannelServer(s grpc.ServiceRegistrar, srv ProjectChannelServer)

func RegisterProtocolServer

func RegisterProtocolServer(s grpc.ServiceRegistrar, srv ProtocolServer)

func RegisterUserChannelServer

func RegisterUserChannelServer(s grpc.ServiceRegistrar, srv UserChannelServer)

Types

type CreateNotificationRequest

type CreateNotificationRequest struct {

	// The type of resource to which the notification is dispatched.
	// Currently, only "identity.Project" or "identity.User" can be set.
	ResourceType string `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
	// The ID of the resource to which notifications are dispatched.
	// If resource_type is "identity.Project", then resource_id requires a project ID values.
	// If resource_type is "identity.User", then resource_id requires a user ID value.
	ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// The topic of notification.
	Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"`
	// This message is used for each protocol.
	Message *_struct.Struct `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
	// The type of notification.
	// +optional
	NotificationType CreateNotificationRequest_NotificationType `` /* 187-byte string literal not displayed */
	// The level of notification.
	// +optional
	NotificationLevel CreateNotificationRequest_NotificationLEVEL `` /* 191-byte string literal not displayed */
	// contains filtered or unexported fields
}
{
   "resource_type": "identity.Project",
   "resource_id": "resource-123456789012",
   "topic": "monitoring.Alert",
   "message": {
       "title": "[Alerting] Not Running Pods 0:OK alert",
       "description": "[spaceone-dev] Not Running Pods 0 is OK\n\nFailure level : WorkerNode\nPanel ... ",
       "tags": {
           "urgency": "LOW",
           "resource_id": "pod",
           "assignee": "user1@email.com",
           "created_at": "2022-01-01T17:12:45.990Z",
           "state": "ACKNOWLEDGED",
           "project_id": "project-123456789012"
       }
   },
   "notification_type": "INFO",
   "notification_level": "LV2"
}

func (*CreateNotificationRequest) Descriptor deprecated

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

Deprecated: Use CreateNotificationRequest.ProtoReflect.Descriptor instead.

func (*CreateNotificationRequest) GetMessage

func (x *CreateNotificationRequest) GetMessage() *_struct.Struct

func (*CreateNotificationRequest) GetNotificationLevel

func (*CreateNotificationRequest) GetNotificationType

func (*CreateNotificationRequest) GetResourceId

func (x *CreateNotificationRequest) GetResourceId() string

func (*CreateNotificationRequest) GetResourceType

func (x *CreateNotificationRequest) GetResourceType() string

func (*CreateNotificationRequest) GetTopic

func (x *CreateNotificationRequest) GetTopic() string

func (*CreateNotificationRequest) ProtoMessage

func (*CreateNotificationRequest) ProtoMessage()

func (*CreateNotificationRequest) ProtoReflect

func (*CreateNotificationRequest) Reset

func (x *CreateNotificationRequest) Reset()

func (*CreateNotificationRequest) String

func (x *CreateNotificationRequest) String() string

type CreateNotificationRequest_NotificationLEVEL

type CreateNotificationRequest_NotificationLEVEL int32
const (
	CreateNotificationRequest_NONE CreateNotificationRequest_NotificationLEVEL = 0
	CreateNotificationRequest_ALL  CreateNotificationRequest_NotificationLEVEL = 1
	CreateNotificationRequest_LV1  CreateNotificationRequest_NotificationLEVEL = 2
	CreateNotificationRequest_LV2  CreateNotificationRequest_NotificationLEVEL = 3
	CreateNotificationRequest_LV3  CreateNotificationRequest_NotificationLEVEL = 4
	CreateNotificationRequest_LV4  CreateNotificationRequest_NotificationLEVEL = 5
	CreateNotificationRequest_LV5  CreateNotificationRequest_NotificationLEVEL = 6
)

func (CreateNotificationRequest_NotificationLEVEL) Descriptor

func (CreateNotificationRequest_NotificationLEVEL) Enum

func (CreateNotificationRequest_NotificationLEVEL) EnumDescriptor deprecated

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

Deprecated: Use CreateNotificationRequest_NotificationLEVEL.Descriptor instead.

func (CreateNotificationRequest_NotificationLEVEL) Number

func (CreateNotificationRequest_NotificationLEVEL) String

func (CreateNotificationRequest_NotificationLEVEL) Type

type CreateNotificationRequest_NotificationType

type CreateNotificationRequest_NotificationType int32
const (
	CreateNotificationRequest_NOTIFICATION_TYPE_NONE CreateNotificationRequest_NotificationType = 0
	CreateNotificationRequest_INFO                   CreateNotificationRequest_NotificationType = 1
	CreateNotificationRequest_ERROR                  CreateNotificationRequest_NotificationType = 2
	CreateNotificationRequest_SUCCESS                CreateNotificationRequest_NotificationType = 3
	CreateNotificationRequest_WARNING                CreateNotificationRequest_NotificationType = 4
)

func (CreateNotificationRequest_NotificationType) Descriptor

func (CreateNotificationRequest_NotificationType) Enum

func (CreateNotificationRequest_NotificationType) EnumDescriptor deprecated

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

Deprecated: Use CreateNotificationRequest_NotificationType.Descriptor instead.

func (CreateNotificationRequest_NotificationType) Number

func (CreateNotificationRequest_NotificationType) String

func (CreateNotificationRequest_NotificationType) Type

type CreateProjectChannelRequest

type CreateProjectChannelRequest struct {

	// The ID of protocol that will be set in project channel.
	ProtocolId string `protobuf:"bytes,1,opt,name=protocol_id,json=protocolId,proto3" json:"protocol_id,omitempty"`
	// The name of Project Channel. It can have a maximum of 255 characters.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The data for using project channel.
	// This data is encrypted and stored in the Secret service if JSON schema in the protocol's metadata is set to SECRET type.
	// In this case, the secret ID that is stored in the security service will be returned and the data value will be empty.
	// if JSON schema in the protocol's metadata is set to PLAIN_TEXT type, This data is not encrypted and stored directly in the DB.
	Data *_struct.Struct `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// Indicates whether subscriptions will be used.
	// +optional
	IsSubscribe bool `protobuf:"varint,4,opt,name=is_subscribe,json=isSubscribe,proto3" json:"is_subscribe,omitempty"`
	// When using subscriptions, it indicates the topic list to subscription.
	// If is_subscribe is set to false, this value is ignored.
	// +optional
	Subscriptions []string `protobuf:"bytes,5,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"`
	// Set the level of notification.
	// If a notification has a level and a notification level that this channel can receive is set, a notification is dispatched only if the notification level is the same.
	// +optional
	NotificationLevel NotificationLevel `` /* 165-byte string literal not displayed */
	// Indicates whether schedule will be used.
	// +optional
	IsScheduled bool `protobuf:"varint,7,opt,name=is_scheduled,json=isScheduled,proto3" json:"is_scheduled,omitempty"`
	// Schedule for which you want to receive notifications through the project channel.
	// +optional
	Schedule *ProjectChannelSchedule `protobuf:"bytes,8,opt,name=schedule,proto3" json:"schedule,omitempty"`
	// The tags for project channel.
	// +optional
	Tags *_struct.Struct `protobuf:"bytes,9,opt,name=tags,proto3" json:"tags,omitempty"`
	// The ID of project to which the project channel belongs.
	ProjectId string `protobuf:"bytes,21,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "protocol_id": "protocol-ab94ea7d574e",
   "name": "sms-test",
   "data": {
       "phone_number": "01011112222"
   },
   "is_subscribe": true,
   "subscriptions": ["monitoring.Alert"],
   "notification_level": "LV1",
   "is_scheduled": true,
   "schedule": {
       "day_of_week": [
           "MON",
           "TUE",
           "WED",
           "THU",
           "FRI"
       ],
       "end_hour": 9
   },
   "project_id": "project-52a423012d5e"
}

func (*CreateProjectChannelRequest) Descriptor deprecated

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

Deprecated: Use CreateProjectChannelRequest.ProtoReflect.Descriptor instead.

func (*CreateProjectChannelRequest) GetData

func (*CreateProjectChannelRequest) GetIsScheduled

func (x *CreateProjectChannelRequest) GetIsScheduled() bool

func (*CreateProjectChannelRequest) GetIsSubscribe

func (x *CreateProjectChannelRequest) GetIsSubscribe() bool

func (*CreateProjectChannelRequest) GetName

func (x *CreateProjectChannelRequest) GetName() string

func (*CreateProjectChannelRequest) GetNotificationLevel

func (x *CreateProjectChannelRequest) GetNotificationLevel() NotificationLevel

func (*CreateProjectChannelRequest) GetProjectId

func (x *CreateProjectChannelRequest) GetProjectId() string

func (*CreateProjectChannelRequest) GetProtocolId

func (x *CreateProjectChannelRequest) GetProtocolId() string

func (*CreateProjectChannelRequest) GetSchedule

func (*CreateProjectChannelRequest) GetSubscriptions

func (x *CreateProjectChannelRequest) GetSubscriptions() []string

func (*CreateProjectChannelRequest) GetTags

func (*CreateProjectChannelRequest) ProtoMessage

func (*CreateProjectChannelRequest) ProtoMessage()

func (*CreateProjectChannelRequest) ProtoReflect

func (*CreateProjectChannelRequest) Reset

func (x *CreateProjectChannelRequest) Reset()

func (*CreateProjectChannelRequest) String

func (x *CreateProjectChannelRequest) String() string

type CreateProtocolRequest

type CreateProtocolRequest struct {

	// The name of Protocol. It can have a maximum of 255 characters.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Describe a Plugin information for protocol that include was used plugin, specific version, schema etc.
	PluginInfo *PluginRequest `protobuf:"bytes,2,opt,name=plugin_info,json=pluginInfo,proto3" json:"plugin_info,omitempty"`
	// The tags for protocol.
	// +optional
	Tags *_struct.Struct `protobuf:"bytes,3,opt,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}
{
   "name": "Email",
   "plugin_info": {
       "plugin_id": "plugin-email-noti-protocol",
       "version": "1.0.1",
       "options": {},
       "secret_id": "secret-123546789012",
       "metadata": {
           "data": {
               "schema": {
                   "properties": {
                       "email": {
                           "pattern": "^[\\W]*([\\w+\\-.%]+@[\\w\\-.]+\\.[A-Za-z]{2,4}[\\W]*,{1}[\\W]*)*([\\w+\\-.%]+@[\\w\\-.]+\\.[A-Za-z]{2,4})[\\W]*$",
                           "examples": [
                               "user1@test.com, user2@test.com"
                           ],
                           "minLength": 10.0,
                           "description": "Email address to receive notifications",
                           "type": "string",
                           "title": "Email Address"
                       }
                   },
                   "required": [
                       "email"
                   ],
                   "type": "object"
               }
           },
           "data_type": "PLAIN_TEXT"
       },
       "upgrade_mode": "AUTO"
   },
   "tags": {}
}

func (*CreateProtocolRequest) Descriptor deprecated

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

Deprecated: Use CreateProtocolRequest.ProtoReflect.Descriptor instead.

func (*CreateProtocolRequest) GetName

func (x *CreateProtocolRequest) GetName() string

func (*CreateProtocolRequest) GetPluginInfo

func (x *CreateProtocolRequest) GetPluginInfo() *PluginRequest

func (*CreateProtocolRequest) GetTags

func (x *CreateProtocolRequest) GetTags() *_struct.Struct

func (*CreateProtocolRequest) ProtoMessage

func (*CreateProtocolRequest) ProtoMessage()

func (*CreateProtocolRequest) ProtoReflect

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

func (*CreateProtocolRequest) Reset

func (x *CreateProtocolRequest) Reset()

func (*CreateProtocolRequest) String

func (x *CreateProtocolRequest) String() string

type CreateUserChannelRequest

type CreateUserChannelRequest struct {

	// The ID of protocol that will be set in user channel.
	ProtocolId string `protobuf:"bytes,1,opt,name=protocol_id,json=protocolId,proto3" json:"protocol_id,omitempty"`
	// The name of User Channel. It can have a maximum of 255 characters.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The data for using user channel.
	// This data is encrypted and stored in the Secret service if JSON schema in the protocol's metadata is set to SECRET type.
	// In this case, the secret ID that is stored in the security service will be returned and the data value will be empty.
	// if JSON schema in the protocol's metadata is set to PLAIN_TEXT type, This data is not encrypted and stored directly in the DB.
	Data *_struct.Struct `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// Indicates whether subscriptions will be used.
	// +optional
	IsSubscribe bool `protobuf:"varint,4,opt,name=is_subscribe,json=isSubscribe,proto3" json:"is_subscribe,omitempty"`
	// When using subscriptions, it indicates the topic list to subscription.
	// If is_subscribe is set to false, this value is ignored.
	// +optional
	Subscriptions []string `protobuf:"bytes,5,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"`
	// Indicates whether schedule will be used.
	// +optional
	IsScheduled bool `protobuf:"varint,6,opt,name=is_scheduled,json=isScheduled,proto3" json:"is_scheduled,omitempty"`
	// Schedule for which you want to receive notifications through the user channel.
	// +optional
	Schedule *UserChannelSchedule `protobuf:"bytes,7,opt,name=schedule,proto3" json:"schedule,omitempty"`
	// The tags for user channel.
	// +optional
	Tags *_struct.Struct `protobuf:"bytes,8,opt,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}
{
   "protocol_id": "protocol-123456789012",
   "name": "Email",
   "data": {
       "email": "user1@email.com"
   },
}

func (*CreateUserChannelRequest) Descriptor deprecated

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

Deprecated: Use CreateUserChannelRequest.ProtoReflect.Descriptor instead.

func (*CreateUserChannelRequest) GetData

func (x *CreateUserChannelRequest) GetData() *_struct.Struct

func (*CreateUserChannelRequest) GetIsScheduled

func (x *CreateUserChannelRequest) GetIsScheduled() bool

func (*CreateUserChannelRequest) GetIsSubscribe

func (x *CreateUserChannelRequest) GetIsSubscribe() bool

func (*CreateUserChannelRequest) GetName

func (x *CreateUserChannelRequest) GetName() string

func (*CreateUserChannelRequest) GetProtocolId

func (x *CreateUserChannelRequest) GetProtocolId() string

func (*CreateUserChannelRequest) GetSchedule

func (*CreateUserChannelRequest) GetSubscriptions

func (x *CreateUserChannelRequest) GetSubscriptions() []string

func (*CreateUserChannelRequest) GetTags

func (x *CreateUserChannelRequest) GetTags() *_struct.Struct

func (*CreateUserChannelRequest) ProtoMessage

func (*CreateUserChannelRequest) ProtoMessage()

func (*CreateUserChannelRequest) ProtoReflect

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

func (*CreateUserChannelRequest) Reset

func (x *CreateUserChannelRequest) Reset()

func (*CreateUserChannelRequest) String

func (x *CreateUserChannelRequest) String() string

type GetNotificationRequest

type GetNotificationRequest struct {

	// The ID of Notification.
	NotificationId string `protobuf:"bytes,1,opt,name=notification_id,json=notificationId,proto3" json:"notification_id,omitempty"`
	// +optional
	// Check whether read or not
	SetRead bool `protobuf:"varint,2,opt,name=set_read,json=setRead,proto3" json:"set_read,omitempty"`
	// contains filtered or unexported fields
}
{
   "notification_id": "notification-4025c1b61225"
}

func (*GetNotificationRequest) Descriptor deprecated

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

Deprecated: Use GetNotificationRequest.ProtoReflect.Descriptor instead.

func (*GetNotificationRequest) GetNotificationId

func (x *GetNotificationRequest) GetNotificationId() string

func (*GetNotificationRequest) GetSetRead

func (x *GetNotificationRequest) GetSetRead() bool

func (*GetNotificationRequest) ProtoMessage

func (*GetNotificationRequest) ProtoMessage()

func (*GetNotificationRequest) ProtoReflect

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

func (*GetNotificationRequest) Reset

func (x *GetNotificationRequest) Reset()

func (*GetNotificationRequest) String

func (x *GetNotificationRequest) String() string

type NotificationClient

type NotificationClient interface {
	// Creates a new Notification. When a Notification is created, it is delivered to a UserChannel or a ProjectChannel depending on the parameter `resource_type`. If a Notification is delivered to a UserChannel, the `resource_type` is `identity.User`, and if a Notification is delivered to a ProjectChannel, the `resource_type` is `identity.Project`.
	Create(ctx context.Context, in *CreateNotificationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Manually raises a Notification. A Notification is raised with a message to be sent using a valid specific Protocol, and data used for a specific Protocol such as a phone number.
	Push(ctx context.Context, in *PushNotificationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Deletes multiple Notifications. You must specify `notifications` of the list of Notifications to delete.
	Delete(ctx context.Context, in *NotificationsRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Marks a Notification as read. When a Notification is raised and if the Notification has been acknowledged, it can be marked as read with the method.
	SetRead(ctx context.Context, in *NotificationsRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Gets a specific Notification. Prints detailed information about the Notification, including not only the message contents(`title`, `description`) but also related data such as created time and urgency.
	Get(ctx context.Context, in *GetNotificationRequest, opts ...grpc.CallOption) (*NotificationInfo, error)
	// Gets a list of all Notifications. You can use a query to get a filtered list of Notifications.
	List(ctx context.Context, in *NotificationQuery, opts ...grpc.CallOption) (*NotificationsInfo, error)
	Stat(ctx context.Context, in *NotificationStatQuery, opts ...grpc.CallOption) (*_struct.Struct, error)
}

NotificationClient is the client API for Notification service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type NotificationInfo

type NotificationInfo struct {

	// The ID of notification.
	NotificationId string `protobuf:"bytes,1,opt,name=notification_id,json=notificationId,proto3" json:"notification_id,omitempty"`
	// The topic of notification.
	Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
	// The contents of notification.
	// This message is used for each protocol.
	Message *_struct.Struct `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// The type of notification.
	NotificationType NotificationInfo_NotificationType `` /* 178-byte string literal not displayed */
	// The level of notification.
	NotificationLevel NotificationInfo_NotificationLEVEL `` /* 182-byte string literal not displayed */
	// Whether or not to check the notification.
	// If notification has been returned at least once through the Get or List method, is_read is changed to True.
	IsRead bool `protobuf:"varint,6,opt,name=is_read,json=isRead,proto3" json:"is_read,omitempty"`
	// The ID of domain
	DomainId string `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	// The ID of user to whom the notification was dispatched.
	UserId string `protobuf:"bytes,22,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// Notification creation time.
	CreatedAt string `protobuf:"bytes,31,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}
{
   "notification_id": "notification-4025c1b61225",
   "topic": "monitoring.Alert",
   "message": {
       "tags": {
           "project_id": "project-18655561c535",
           "created_at": null,
           "urgency": "LOW",
           "state": "TRIGGERED",
           "resource_id": "AWS/NetworkELB",
           "resource_name": "[Asia Pacific (Seoul)]:[AWS/NetworkELB]: net/af83f347171a044af46453ebb34c8225/743a23562a96c595"
       },
       "title": "[Asia Pacific (Seoul)]: NLB-TCP_Target_Reset_Count-Alert",
       "description": "Threshold Crossed: 1 out of the last 1 datapoints [200.0 (25/06/21 06:38:00)] was not greater than the threshold (200.0)"
   },
   "notification_type": "INFO",
   "notification_level": "ALL",
   "is_read": true,
   "user_id": "user1@spaceone.dev",
   "domain_id": "domain-58010aa2e451",
   "created_at": "2021-06-25T06:42:05.867Z"
}

func (*NotificationInfo) Descriptor deprecated

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

Deprecated: Use NotificationInfo.ProtoReflect.Descriptor instead.

func (*NotificationInfo) GetCreatedAt

func (x *NotificationInfo) GetCreatedAt() string

func (*NotificationInfo) GetDomainId

func (x *NotificationInfo) GetDomainId() string

func (*NotificationInfo) GetIsRead

func (x *NotificationInfo) GetIsRead() bool

func (*NotificationInfo) GetMessage

func (x *NotificationInfo) GetMessage() *_struct.Struct

func (*NotificationInfo) GetNotificationId

func (x *NotificationInfo) GetNotificationId() string

func (*NotificationInfo) GetNotificationLevel

func (x *NotificationInfo) GetNotificationLevel() NotificationInfo_NotificationLEVEL

func (*NotificationInfo) GetNotificationType

func (x *NotificationInfo) GetNotificationType() NotificationInfo_NotificationType

func (*NotificationInfo) GetTopic

func (x *NotificationInfo) GetTopic() string

func (*NotificationInfo) GetUserId

func (x *NotificationInfo) GetUserId() string

func (*NotificationInfo) ProtoMessage

func (*NotificationInfo) ProtoMessage()

func (*NotificationInfo) ProtoReflect

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

func (*NotificationInfo) Reset

func (x *NotificationInfo) Reset()

func (*NotificationInfo) String

func (x *NotificationInfo) String() string

type NotificationInfo_NotificationLEVEL

type NotificationInfo_NotificationLEVEL int32
const (
	NotificationInfo_NONE NotificationInfo_NotificationLEVEL = 0
	NotificationInfo_ALL  NotificationInfo_NotificationLEVEL = 1
	NotificationInfo_LV1  NotificationInfo_NotificationLEVEL = 2
	NotificationInfo_LV2  NotificationInfo_NotificationLEVEL = 3
	NotificationInfo_LV3  NotificationInfo_NotificationLEVEL = 4
	NotificationInfo_LV4  NotificationInfo_NotificationLEVEL = 5
	NotificationInfo_LV5  NotificationInfo_NotificationLEVEL = 6
)

func (NotificationInfo_NotificationLEVEL) Descriptor

func (NotificationInfo_NotificationLEVEL) Enum

func (NotificationInfo_NotificationLEVEL) EnumDescriptor deprecated

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

Deprecated: Use NotificationInfo_NotificationLEVEL.Descriptor instead.

func (NotificationInfo_NotificationLEVEL) Number

func (NotificationInfo_NotificationLEVEL) String

func (NotificationInfo_NotificationLEVEL) Type

type NotificationInfo_NotificationType

type NotificationInfo_NotificationType int32
const (
	NotificationInfo_NOTIFICATION_TYPE_NONE NotificationInfo_NotificationType = 0
	NotificationInfo_INFO                   NotificationInfo_NotificationType = 1
	NotificationInfo_ERROR                  NotificationInfo_NotificationType = 2
	NotificationInfo_SUCCESS                NotificationInfo_NotificationType = 3
	NotificationInfo_WARNING                NotificationInfo_NotificationType = 4
)

func (NotificationInfo_NotificationType) Descriptor

func (NotificationInfo_NotificationType) Enum

func (NotificationInfo_NotificationType) EnumDescriptor deprecated

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

Deprecated: Use NotificationInfo_NotificationType.Descriptor instead.

func (NotificationInfo_NotificationType) Number

func (NotificationInfo_NotificationType) String

func (NotificationInfo_NotificationType) Type

type NotificationLevel

type NotificationLevel int32
const (
	NotificationLevel_NONE NotificationLevel = 0
	NotificationLevel_LV1  NotificationLevel = 1
	NotificationLevel_LV2  NotificationLevel = 2
	NotificationLevel_LV3  NotificationLevel = 3
	NotificationLevel_LV4  NotificationLevel = 4
	NotificationLevel_LV5  NotificationLevel = 5
)

func (NotificationLevel) Descriptor

func (NotificationLevel) Enum

func (NotificationLevel) EnumDescriptor deprecated

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

Deprecated: Use NotificationLevel.Descriptor instead.

func (NotificationLevel) Number

func (NotificationLevel) String

func (x NotificationLevel) String() string

func (NotificationLevel) Type

type NotificationQuery

type NotificationQuery struct {

	// Query format provided by SpaceONE. Please check the link for more information.
	// +optional
	Query *v2.Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// The ID of notification.
	// +optional
	NotificationId string `protobuf:"bytes,2,opt,name=notification_id,json=notificationId,proto3" json:"notification_id,omitempty"`
	// The topic of notification.
	// +optional
	Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"`
	// The type of notification.
	// +optional
	NotificationType NotificationQuery_NotificationType `` /* 179-byte string literal not displayed */
	// The level of notification.
	// +optional
	NotificationLevel NotificationQuery_NotificationLEVEL `` /* 183-byte string literal not displayed */
	// Whether or not to check the notification.
	// If is_read is False, the user has not checked the notification yet.
	// +optional
	IsRead bool `protobuf:"varint,6,opt,name=is_read,json=isRead,proto3" json:"is_read,omitempty"`
	// The project ID to which the notification will be dispatched.
	// +optional
	ProjectId string `protobuf:"bytes,21,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// The ID of parent notification. Not used yet.
	// +optional
	ParentNotificationId string `protobuf:"bytes,22,opt,name=parent_notification_id,json=parentNotificationId,proto3" json:"parent_notification_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "query": {
       "filter": [
           {
               "key": "notification_type",
               "value": "INFO",
               "operator": "eq"
           }
       ]
   }
}

func (*NotificationQuery) Descriptor deprecated

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

Deprecated: Use NotificationQuery.ProtoReflect.Descriptor instead.

func (*NotificationQuery) GetIsRead

func (x *NotificationQuery) GetIsRead() bool

func (*NotificationQuery) GetNotificationId

func (x *NotificationQuery) GetNotificationId() string

func (*NotificationQuery) GetNotificationLevel

func (x *NotificationQuery) GetNotificationLevel() NotificationQuery_NotificationLEVEL

func (*NotificationQuery) GetNotificationType

func (x *NotificationQuery) GetNotificationType() NotificationQuery_NotificationType

func (*NotificationQuery) GetParentNotificationId

func (x *NotificationQuery) GetParentNotificationId() string

func (*NotificationQuery) GetProjectId

func (x *NotificationQuery) GetProjectId() string

func (*NotificationQuery) GetQuery

func (x *NotificationQuery) GetQuery() *v2.Query

func (*NotificationQuery) GetTopic

func (x *NotificationQuery) GetTopic() string

func (*NotificationQuery) ProtoMessage

func (*NotificationQuery) ProtoMessage()

func (*NotificationQuery) ProtoReflect

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

func (*NotificationQuery) Reset

func (x *NotificationQuery) Reset()

func (*NotificationQuery) String

func (x *NotificationQuery) String() string

type NotificationQuery_NotificationLEVEL

type NotificationQuery_NotificationLEVEL int32
const (
	NotificationQuery_NONE NotificationQuery_NotificationLEVEL = 0
	NotificationQuery_ALL  NotificationQuery_NotificationLEVEL = 1
	NotificationQuery_LV1  NotificationQuery_NotificationLEVEL = 2
	NotificationQuery_LV2  NotificationQuery_NotificationLEVEL = 3
	NotificationQuery_LV3  NotificationQuery_NotificationLEVEL = 4
	NotificationQuery_LV4  NotificationQuery_NotificationLEVEL = 5
	NotificationQuery_LV5  NotificationQuery_NotificationLEVEL = 6
)

func (NotificationQuery_NotificationLEVEL) Descriptor

func (NotificationQuery_NotificationLEVEL) Enum

func (NotificationQuery_NotificationLEVEL) EnumDescriptor deprecated

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

Deprecated: Use NotificationQuery_NotificationLEVEL.Descriptor instead.

func (NotificationQuery_NotificationLEVEL) Number

func (NotificationQuery_NotificationLEVEL) String

func (NotificationQuery_NotificationLEVEL) Type

type NotificationQuery_NotificationType

type NotificationQuery_NotificationType int32
const (
	NotificationQuery_NOTIFICATION_TYPE_NONE NotificationQuery_NotificationType = 0
	NotificationQuery_INFO                   NotificationQuery_NotificationType = 1
	NotificationQuery_ERROR                  NotificationQuery_NotificationType = 2
	NotificationQuery_SUCCESS                NotificationQuery_NotificationType = 3
	NotificationQuery_WARNING                NotificationQuery_NotificationType = 4
)

func (NotificationQuery_NotificationType) Descriptor

func (NotificationQuery_NotificationType) Enum

func (NotificationQuery_NotificationType) EnumDescriptor deprecated

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

Deprecated: Use NotificationQuery_NotificationType.Descriptor instead.

func (NotificationQuery_NotificationType) Number

func (NotificationQuery_NotificationType) String

func (NotificationQuery_NotificationType) Type

type NotificationServer

type NotificationServer interface {
	// Creates a new Notification. When a Notification is created, it is delivered to a UserChannel or a ProjectChannel depending on the parameter `resource_type`. If a Notification is delivered to a UserChannel, the `resource_type` is `identity.User`, and if a Notification is delivered to a ProjectChannel, the `resource_type` is `identity.Project`.
	Create(context.Context, *CreateNotificationRequest) (*empty.Empty, error)
	// Manually raises a Notification. A Notification is raised with a message to be sent using a valid specific Protocol, and data used for a specific Protocol such as a phone number.
	Push(context.Context, *PushNotificationRequest) (*empty.Empty, error)
	// Deletes multiple Notifications. You must specify `notifications` of the list of Notifications to delete.
	Delete(context.Context, *NotificationsRequest) (*empty.Empty, error)
	// Marks a Notification as read. When a Notification is raised and if the Notification has been acknowledged, it can be marked as read with the method.
	SetRead(context.Context, *NotificationsRequest) (*empty.Empty, error)
	// Gets a specific Notification. Prints detailed information about the Notification, including not only the message contents(`title`, `description`) but also related data such as created time and urgency.
	Get(context.Context, *GetNotificationRequest) (*NotificationInfo, error)
	// Gets a list of all Notifications. You can use a query to get a filtered list of Notifications.
	List(context.Context, *NotificationQuery) (*NotificationsInfo, error)
	Stat(context.Context, *NotificationStatQuery) (*_struct.Struct, error)
	// contains filtered or unexported methods
}

NotificationServer is the server API for Notification service. All implementations must embed UnimplementedNotificationServer for forward compatibility

type NotificationStatQuery

type NotificationStatQuery struct {

	// is_required: true
	// Statistics Query format provided by SpaceONE. Please check the link for more information.
	Query *v2.StatisticsQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*NotificationStatQuery) Descriptor deprecated

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

Deprecated: Use NotificationStatQuery.ProtoReflect.Descriptor instead.

func (*NotificationStatQuery) GetQuery

func (x *NotificationStatQuery) GetQuery() *v2.StatisticsQuery

func (*NotificationStatQuery) ProtoMessage

func (*NotificationStatQuery) ProtoMessage()

func (*NotificationStatQuery) ProtoReflect

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

func (*NotificationStatQuery) Reset

func (x *NotificationStatQuery) Reset()

func (*NotificationStatQuery) String

func (x *NotificationStatQuery) String() string

type NotificationsInfo

type NotificationsInfo struct {

	// List of queried notifications.
	Results []*NotificationInfo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// Total counts of queried notifications.
	TotalCount int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}
{
   "results": [
       {
           "notification_id": "notification-9f1476af11b7",
           "topic": "monitoring.Alert",
           "message": {
               "tags": {
                   "state": "ACKNOWLEDGED",
                   "resource_id": "pod",
                   "project_id": "project-18655561c535",
                   "urgency": "LOW",
                   "created_at": null,
                   "assignee": "yuda@test.co"
               },
               "title": "[Alerting] Not Running Pods 0:OK alert",
               "description": "[cloudone-dev-v1-eks-cluster] Not Running Pods 0 is OK"
           },
           "notification_type": "INFO",
           "notification_level": "LV2",
           "is_read": true,
           "user_id": "user33@spaceone.dev",
           "domain_id": "domain-58010aa2e451",
           "created_at": "2021-06-21T17:13:39.570Z"
       },
       {
           "notification_id": "notification-4025c1b61225",
           "topic": "monitoring.Alert",
           "message": {
               "title": "[Asia Pacific (Seoul)]: NLB-TCP_Target_Reset_Count-Alert",
               "description": "Threshold Crossed: 1 out of the last 1 datapoints [200.0 (25/06/21 06:38:00)] was not greater than the threshold (200.0)",
               "tags": {
                   "resource_id": "AWS/NetworkELB",
                   "resource_name": "[Asia Pacific (Seoul)]:[AWS/NetworkELB]: net/dfsbvs/advdr32rwqdsvzc",
                   "created_at": null,
                   "state": "TRIGGERED",
                   "project_id": "project-18655561c535",
                   "urgency": "LOW"
               }
           },
           "notification_type": "INFO",
           "notification_level": "ALL",
           "is_read": true,
           "user_id": "user1@cloudforet.io",
           "domain_id": "domain-58010aa2e451",
           "created_at": "2021-06-25T06:42:05.867Z"
       }
   ],
   "total_count": 2
}

func (*NotificationsInfo) Descriptor deprecated

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

Deprecated: Use NotificationsInfo.ProtoReflect.Descriptor instead.

func (*NotificationsInfo) GetResults

func (x *NotificationsInfo) GetResults() []*NotificationInfo

func (*NotificationsInfo) GetTotalCount

func (x *NotificationsInfo) GetTotalCount() int32

func (*NotificationsInfo) ProtoMessage

func (*NotificationsInfo) ProtoMessage()

func (*NotificationsInfo) ProtoReflect

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

func (*NotificationsInfo) Reset

func (x *NotificationsInfo) Reset()

func (*NotificationsInfo) String

func (x *NotificationsInfo) String() string

type NotificationsRequest

type NotificationsRequest struct {

	// ID list of Notifications.
	Notifications []string `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"`
	// contains filtered or unexported fields
}
{
   "notifications": [
       "notification-4025c1b61225",
       "notification-13hk3fh32534",
       "notification-4kth40jth5jy"
   ]
}

func (*NotificationsRequest) Descriptor deprecated

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

Deprecated: Use NotificationsRequest.ProtoReflect.Descriptor instead.

func (*NotificationsRequest) GetNotifications

func (x *NotificationsRequest) GetNotifications() []string

func (*NotificationsRequest) ProtoMessage

func (*NotificationsRequest) ProtoMessage()

func (*NotificationsRequest) ProtoReflect

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

func (*NotificationsRequest) Reset

func (x *NotificationsRequest) Reset()

func (*NotificationsRequest) String

func (x *NotificationsRequest) String() string

type PluginInfo

type PluginInfo struct {

	// The ID of plugin set in the Protocol.
	PluginId string `protobuf:"bytes,1,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"`
	// The version of plugin.
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// The Options that contains information about using plugin.
	Options *_struct.Struct `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	// The ID of the Secret containing encrypted data to be used in the plugin.
	// +optional
	SecretId string `protobuf:"bytes,4,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// The metadata of plugin. It includes schema for the data that must be set for the Channel when creating the Channel using a Protocol.
	// The schema follows the JSON Schema format.
	Metadata *_struct.Struct `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Auto upgrade for plugin.
	// If the upgrade_mode is AUTO, check the latest plugin version when running the plugin, and if a new version is existed, replace the plugin and then run it.
	UpgradeMode PluginInfo_UpgradeMode `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*PluginInfo) Descriptor deprecated

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

Deprecated: Use PluginInfo.ProtoReflect.Descriptor instead.

func (*PluginInfo) GetMetadata

func (x *PluginInfo) GetMetadata() *_struct.Struct

func (*PluginInfo) GetOptions

func (x *PluginInfo) GetOptions() *_struct.Struct

func (*PluginInfo) GetPluginId

func (x *PluginInfo) GetPluginId() string

func (*PluginInfo) GetSecretId

func (x *PluginInfo) GetSecretId() string

func (*PluginInfo) GetUpgradeMode

func (x *PluginInfo) GetUpgradeMode() PluginInfo_UpgradeMode

func (*PluginInfo) GetVersion

func (x *PluginInfo) GetVersion() string

func (*PluginInfo) ProtoMessage

func (*PluginInfo) ProtoMessage()

func (*PluginInfo) ProtoReflect

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

func (*PluginInfo) Reset

func (x *PluginInfo) Reset()

func (*PluginInfo) String

func (x *PluginInfo) String() string

type PluginInfo_UpgradeMode

type PluginInfo_UpgradeMode int32
const (
	PluginInfo_NONE   PluginInfo_UpgradeMode = 0
	PluginInfo_AUTO   PluginInfo_UpgradeMode = 1
	PluginInfo_MANUAL PluginInfo_UpgradeMode = 2
)

func (PluginInfo_UpgradeMode) Descriptor

func (PluginInfo_UpgradeMode) Enum

func (PluginInfo_UpgradeMode) EnumDescriptor deprecated

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

Deprecated: Use PluginInfo_UpgradeMode.Descriptor instead.

func (PluginInfo_UpgradeMode) Number

func (PluginInfo_UpgradeMode) String

func (x PluginInfo_UpgradeMode) String() string

func (PluginInfo_UpgradeMode) Type

type PluginRequest

type PluginRequest struct {

	// The ID of plugin.
	PluginId string `protobuf:"bytes,1,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"`
	// The version of plugin.
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// The Options that contains information about using plugin.
	// +optional
	Options *_struct.Struct `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	// The data for using plugin if necessary. This data is encrypted and stored in the Secret service.
	// +optional
	SecretData *_struct.Struct `protobuf:"bytes,4,opt,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty"`
	// The name of schema.
	// When the secret_data is stored in the Secret service, it can be set with schema if the schema is existed.
	// The schema is provided through the Repository service.
	// +optional
	Schema string `protobuf:"bytes,5,opt,name=schema,proto3" json:"schema,omitempty"`
	// Auto upgrade feature for plugin.
	// If the upgrade mode is AUTO, check the latest plugin version when running the plugin, and if a new version is existed, replace the plugin and then run it.
	// +optional
	UpgradeMode PluginRequest_UpgradeMode `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*PluginRequest) Descriptor deprecated

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

Deprecated: Use PluginRequest.ProtoReflect.Descriptor instead.

func (*PluginRequest) GetOptions

func (x *PluginRequest) GetOptions() *_struct.Struct

func (*PluginRequest) GetPluginId

func (x *PluginRequest) GetPluginId() string

func (*PluginRequest) GetSchema

func (x *PluginRequest) GetSchema() string

func (*PluginRequest) GetSecretData

func (x *PluginRequest) GetSecretData() *_struct.Struct

func (*PluginRequest) GetUpgradeMode

func (x *PluginRequest) GetUpgradeMode() PluginRequest_UpgradeMode

func (*PluginRequest) GetVersion

func (x *PluginRequest) GetVersion() string

func (*PluginRequest) ProtoMessage

func (*PluginRequest) ProtoMessage()

func (*PluginRequest) ProtoReflect

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

func (*PluginRequest) Reset

func (x *PluginRequest) Reset()

func (*PluginRequest) String

func (x *PluginRequest) String() string

type PluginRequest_UpgradeMode

type PluginRequest_UpgradeMode int32
const (
	PluginRequest_NONE   PluginRequest_UpgradeMode = 0
	PluginRequest_AUTO   PluginRequest_UpgradeMode = 1
	PluginRequest_MANUAL PluginRequest_UpgradeMode = 2
)

func (PluginRequest_UpgradeMode) Descriptor

func (PluginRequest_UpgradeMode) Enum

func (PluginRequest_UpgradeMode) EnumDescriptor deprecated

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

Deprecated: Use PluginRequest_UpgradeMode.Descriptor instead.

func (PluginRequest_UpgradeMode) Number

func (PluginRequest_UpgradeMode) String

func (x PluginRequest_UpgradeMode) String() string

func (PluginRequest_UpgradeMode) Type

type ProjectChannelClient

type ProjectChannelClient interface {
	// Creates a new ProjectChannel. ProjectChannel is a channel that delivers a Notification to the Project when the Notification is created. When creating a ProjectChannel, one Protocol must be selected, and a Notification is dispatched via the selected Protocol.
	Create(ctx context.Context, in *CreateProjectChannelRequest, opts ...grpc.CallOption) (*ProjectChannelInfo, error)
	// Updates a specific ProjectChannel. A ProjectChannel that has already been configured cannot be changed. Instead, the data required for dispatching Notifications to a ProjectChannel can be updated.
	Update(ctx context.Context, in *UpdateProjectChannelRequest, opts ...grpc.CallOption) (*ProjectChannelInfo, error)
	// Sets a schedule for a ProjectChannel. A schedule defines the time to receive a Notification. When a Notification is created, you can set the day of the week and time you want to receive it. When you set the day of the week, you can receive a notification only on the day of the week you set. If you also set the start time and end time with the day of the week, you can receive a Notification only at the scheduled time on the day of the week you set. If there is no schedule set in a ProjectChannel, Notifications will be dispatched at all times via the ProjectChannel.
	SetSchedule(ctx context.Context, in *UpdateProjectChannelScheduleRequest, opts ...grpc.CallOption) (*ProjectChannelInfo, error)
	// Sets a subscription for a ProjectChannel. A subscription is a topic for channels to subscribe to and get notified about. If a ProjectChannel has subscriptions, a Notification is dispatched only if the topic of the Notification is the same as the one set in the subscriptions. If there is no subscription in a ProjectChannel, all Notifications will be dispatched.
	SetSubscription(ctx context.Context, in *UpdateProjectChannelSubscriptionRequest, opts ...grpc.CallOption) (*ProjectChannelInfo, error)
	// Enables a specific ProjectChannel. If a ProjectChannel is enabled, the ProjectChannel can be used and the Notification can be dispatched. Even if a ProjectChannel is enabled, if the Protocol used in the ProjectChannel is disabled, the Notification is not dispatched.
	Enable(ctx context.Context, in *ProjectChannelRequest, opts ...grpc.CallOption) (*ProjectChannelInfo, error)
	// Disables a specific ProjectChannel. If a ProjectChannel is disabled, the Notification is not dispatched, even if it is created.
	Disable(ctx context.Context, in *ProjectChannelRequest, opts ...grpc.CallOption) (*ProjectChannelInfo, error)
	// Deletes a specific ProjectChannel.
	Delete(ctx context.Context, in *ProjectChannelRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Gets a specific ProjectChannel. Prints detailed information about the ProjectChannel.
	Get(ctx context.Context, in *ProjectChannelRequest, opts ...grpc.CallOption) (*ProjectChannelInfo, error)
	// Gets a list of all ProjectChannels. You can use a query to get a filtered list of ProjectChannels.
	List(ctx context.Context, in *ProjectChannelQuery, opts ...grpc.CallOption) (*ProjectChannelsInfo, error)
	Stat(ctx context.Context, in *ProjectChannelStatQuery, opts ...grpc.CallOption) (*_struct.Struct, error)
}

ProjectChannelClient is the client API for ProjectChannel service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ProjectChannelInfo

type ProjectChannelInfo struct {

	// The ID of project channel.
	ProjectChannelId string `protobuf:"bytes,1,opt,name=project_channel_id,json=projectChannelId,proto3" json:"project_channel_id,omitempty"`
	// The name of project channel
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The state of project channel. ENABLED or DISABLED only.
	State ProjectChannelInfo_ProjectChannelState `` /* 137-byte string literal not displayed */
	// The data for using project channel.
	Data *_struct.Struct `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// Indicates whether subscriptions will be used.
	IsSubscribe bool `protobuf:"varint,5,opt,name=is_subscribe,json=isSubscribe,proto3" json:"is_subscribe,omitempty"`
	// The topic list to subscription.
	Subscriptions []string `protobuf:"bytes,6,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"`
	// Indicates whether schedule will be used.
	IsScheduled bool `protobuf:"varint,7,opt,name=is_scheduled,json=isScheduled,proto3" json:"is_scheduled,omitempty"`
	// Schedule for which you want to receive notifications through the project channel.
	Schedule *ProjectChannelSchedule `protobuf:"bytes,8,opt,name=schedule,proto3" json:"schedule,omitempty"`
	// Set the level of notification.
	NotificationLevel NotificationLevel `` /* 165-byte string literal not displayed */
	// The tags for project channel.
	Tags *_struct.Struct `protobuf:"bytes,10,opt,name=tags,proto3" json:"tags,omitempty"`
	// The ID of domain.
	DomainId string `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	// The ID of workspace
	WorkspaceId string `protobuf:"bytes,22,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
	// The ID of project to which the project channel belongs.
	ProjectId string `protobuf:"bytes,23,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// The ID of protocol set in the project channel.
	ProtocolId string `protobuf:"bytes,24,opt,name=protocol_id,json=protocolId,proto3" json:"protocol_id,omitempty"`
	// The ID of secret encrypted data in the security service
	SecretId string `protobuf:"bytes,25,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// Project channel creation time.
	CreatedAt string `protobuf:"bytes,31,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}
{
   "project_channel_id": "project-ch-488df94d026d",
   "name": "sms-test",
   "state": "ENABLED",
   "data": {
       "phone_number": "01011112222"
   },
   "notification_level": "LV1",
   "tags": {},
   "protocol_id": "protocol-ab94ea7d574e",
   "project_id": "project-aa723eed3d69",
   "workspace_id": "workspace-123456789012"
   "domain_id": "domain-58010aa2e451",
   "created_at": "2022-06-13T07:35:28.305Z"
}

func (*ProjectChannelInfo) Descriptor deprecated

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

Deprecated: Use ProjectChannelInfo.ProtoReflect.Descriptor instead.

func (*ProjectChannelInfo) GetCreatedAt

func (x *ProjectChannelInfo) GetCreatedAt() string

func (*ProjectChannelInfo) GetData

func (x *ProjectChannelInfo) GetData() *_struct.Struct

func (*ProjectChannelInfo) GetDomainId

func (x *ProjectChannelInfo) GetDomainId() string

func (*ProjectChannelInfo) GetIsScheduled

func (x *ProjectChannelInfo) GetIsScheduled() bool

func (*ProjectChannelInfo) GetIsSubscribe

func (x *ProjectChannelInfo) GetIsSubscribe() bool

func (*ProjectChannelInfo) GetName

func (x *ProjectChannelInfo) GetName() string

func (*ProjectChannelInfo) GetNotificationLevel

func (x *ProjectChannelInfo) GetNotificationLevel() NotificationLevel

func (*ProjectChannelInfo) GetProjectChannelId

func (x *ProjectChannelInfo) GetProjectChannelId() string

func (*ProjectChannelInfo) GetProjectId

func (x *ProjectChannelInfo) GetProjectId() string

func (*ProjectChannelInfo) GetProtocolId

func (x *ProjectChannelInfo) GetProtocolId() string

func (*ProjectChannelInfo) GetSchedule

func (x *ProjectChannelInfo) GetSchedule() *ProjectChannelSchedule

func (*ProjectChannelInfo) GetSecretId

func (x *ProjectChannelInfo) GetSecretId() string

func (*ProjectChannelInfo) GetState

func (*ProjectChannelInfo) GetSubscriptions

func (x *ProjectChannelInfo) GetSubscriptions() []string

func (*ProjectChannelInfo) GetTags

func (x *ProjectChannelInfo) GetTags() *_struct.Struct

func (*ProjectChannelInfo) GetWorkspaceId

func (x *ProjectChannelInfo) GetWorkspaceId() string

func (*ProjectChannelInfo) ProtoMessage

func (*ProjectChannelInfo) ProtoMessage()

func (*ProjectChannelInfo) ProtoReflect

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

func (*ProjectChannelInfo) Reset

func (x *ProjectChannelInfo) Reset()

func (*ProjectChannelInfo) String

func (x *ProjectChannelInfo) String() string

type ProjectChannelInfo_ProjectChannelState

type ProjectChannelInfo_ProjectChannelState int32
const (
	ProjectChannelInfo_NONE     ProjectChannelInfo_ProjectChannelState = 0
	ProjectChannelInfo_ENABLED  ProjectChannelInfo_ProjectChannelState = 1
	ProjectChannelInfo_DISABLED ProjectChannelInfo_ProjectChannelState = 2
)

func (ProjectChannelInfo_ProjectChannelState) Descriptor

func (ProjectChannelInfo_ProjectChannelState) Enum

func (ProjectChannelInfo_ProjectChannelState) EnumDescriptor deprecated

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

Deprecated: Use ProjectChannelInfo_ProjectChannelState.Descriptor instead.

func (ProjectChannelInfo_ProjectChannelState) Number

func (ProjectChannelInfo_ProjectChannelState) String

func (ProjectChannelInfo_ProjectChannelState) Type

type ProjectChannelQuery

type ProjectChannelQuery struct {

	// Query format provided by SpaceONE. Please check the link for more information.
	// +optional
	Query *v2.Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// The ID of project channel.
	// +optional
	ProjectChannelId string `protobuf:"bytes,2,opt,name=project_channel_id,json=projectChannelId,proto3" json:"project_channel_id,omitempty"`
	// The name of project channel.
	// +optional
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// The state of project channel. ENABLED or DISABLED only.
	// +optional
	State ProjectChannelQuery_ProjectChannelState `` /* 138-byte string literal not displayed */
	// Indicates whether subscriptions will be used.
	// +optional
	IsSubscribe bool `protobuf:"varint,5,opt,name=is_subscribe,json=isSubscribe,proto3" json:"is_subscribe,omitempty"`
	// Indicates whether schedule will be used.
	// +optional
	IsScheduled bool `protobuf:"varint,6,opt,name=is_scheduled,json=isScheduled,proto3" json:"is_scheduled,omitempty"`
	// The level of notification.
	// +optional
	NotificationLevel NotificationLevel `` /* 165-byte string literal not displayed */
	// The ID of project to which the project channel belongs.
	// +optional
	ProjectId string `protobuf:"bytes,21,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// The ID of protocol set in the project channel.
	// +optional
	ProtocolId string `protobuf:"bytes,22,opt,name=protocol_id,json=protocolId,proto3" json:"protocol_id,omitempty"`
	// The ID of secret encrypted data in the security service
	// +optional
	SecretId string `protobuf:"bytes,23,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "query": {
       "filter": [
           {
               "key": "state",
               "value": "ENABLED",
               "operator": "eq"
           }
       ]
   }
}

func (*ProjectChannelQuery) Descriptor deprecated

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

Deprecated: Use ProjectChannelQuery.ProtoReflect.Descriptor instead.

func (*ProjectChannelQuery) GetIsScheduled

func (x *ProjectChannelQuery) GetIsScheduled() bool

func (*ProjectChannelQuery) GetIsSubscribe

func (x *ProjectChannelQuery) GetIsSubscribe() bool

func (*ProjectChannelQuery) GetName

func (x *ProjectChannelQuery) GetName() string

func (*ProjectChannelQuery) GetNotificationLevel

func (x *ProjectChannelQuery) GetNotificationLevel() NotificationLevel

func (*ProjectChannelQuery) GetProjectChannelId

func (x *ProjectChannelQuery) GetProjectChannelId() string

func (*ProjectChannelQuery) GetProjectId

func (x *ProjectChannelQuery) GetProjectId() string

func (*ProjectChannelQuery) GetProtocolId

func (x *ProjectChannelQuery) GetProtocolId() string

func (*ProjectChannelQuery) GetQuery

func (x *ProjectChannelQuery) GetQuery() *v2.Query

func (*ProjectChannelQuery) GetSecretId

func (x *ProjectChannelQuery) GetSecretId() string

func (*ProjectChannelQuery) GetState

func (*ProjectChannelQuery) ProtoMessage

func (*ProjectChannelQuery) ProtoMessage()

func (*ProjectChannelQuery) ProtoReflect

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

func (*ProjectChannelQuery) Reset

func (x *ProjectChannelQuery) Reset()

func (*ProjectChannelQuery) String

func (x *ProjectChannelQuery) String() string

type ProjectChannelQuery_ProjectChannelState

type ProjectChannelQuery_ProjectChannelState int32
const (
	ProjectChannelQuery_NONE     ProjectChannelQuery_ProjectChannelState = 0
	ProjectChannelQuery_ENABLED  ProjectChannelQuery_ProjectChannelState = 1
	ProjectChannelQuery_DISABLED ProjectChannelQuery_ProjectChannelState = 2
)

func (ProjectChannelQuery_ProjectChannelState) Descriptor

func (ProjectChannelQuery_ProjectChannelState) Enum

func (ProjectChannelQuery_ProjectChannelState) EnumDescriptor deprecated

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

Deprecated: Use ProjectChannelQuery_ProjectChannelState.Descriptor instead.

func (ProjectChannelQuery_ProjectChannelState) Number

func (ProjectChannelQuery_ProjectChannelState) String

func (ProjectChannelQuery_ProjectChannelState) Type

type ProjectChannelRequest

type ProjectChannelRequest struct {

	// The ID of project channel.
	ProjectChannelId string `protobuf:"bytes,1,opt,name=project_channel_id,json=projectChannelId,proto3" json:"project_channel_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "project_channel_id": "project-ch-ffdb1d6cc774"
}

func (*ProjectChannelRequest) Descriptor deprecated

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

Deprecated: Use ProjectChannelRequest.ProtoReflect.Descriptor instead.

func (*ProjectChannelRequest) GetProjectChannelId

func (x *ProjectChannelRequest) GetProjectChannelId() string

func (*ProjectChannelRequest) ProtoMessage

func (*ProjectChannelRequest) ProtoMessage()

func (*ProjectChannelRequest) ProtoReflect

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

func (*ProjectChannelRequest) Reset

func (x *ProjectChannelRequest) Reset()

func (*ProjectChannelRequest) String

func (x *ProjectChannelRequest) String() string

type ProjectChannelSchedule

type ProjectChannelSchedule struct {

	// Day of the week to be notified.
	// As a list type, only types that can be specified from MON to SUN can be set.
	DayOfWeek []ProjectChannelSchedule_DayOfWeek `` /* 165-byte string literal not displayed */
	// Start time to receive notifications.
	// Only integer type can be set, and 0 to 23 can be.
	StartHour int32 `protobuf:"varint,2,opt,name=start_hour,json=startHour,proto3" json:"start_hour,omitempty"`
	// End time to receive notifications.
	// Only integer type can be set, and 1 to 24 can be.
	EndHour int32 `protobuf:"varint,3,opt,name=end_hour,json=endHour,proto3" json:"end_hour,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectChannelSchedule) Descriptor deprecated

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

Deprecated: Use ProjectChannelSchedule.ProtoReflect.Descriptor instead.

func (*ProjectChannelSchedule) GetDayOfWeek

func (*ProjectChannelSchedule) GetEndHour

func (x *ProjectChannelSchedule) GetEndHour() int32

func (*ProjectChannelSchedule) GetStartHour

func (x *ProjectChannelSchedule) GetStartHour() int32

func (*ProjectChannelSchedule) ProtoMessage

func (*ProjectChannelSchedule) ProtoMessage()

func (*ProjectChannelSchedule) ProtoReflect

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

func (*ProjectChannelSchedule) Reset

func (x *ProjectChannelSchedule) Reset()

func (*ProjectChannelSchedule) String

func (x *ProjectChannelSchedule) String() string

type ProjectChannelSchedule_DayOfWeek

type ProjectChannelSchedule_DayOfWeek int32
const (
	ProjectChannelSchedule_NONE ProjectChannelSchedule_DayOfWeek = 0
	ProjectChannelSchedule_MON  ProjectChannelSchedule_DayOfWeek = 1
	ProjectChannelSchedule_TUE  ProjectChannelSchedule_DayOfWeek = 2
	ProjectChannelSchedule_WED  ProjectChannelSchedule_DayOfWeek = 3
	ProjectChannelSchedule_THU  ProjectChannelSchedule_DayOfWeek = 4
	ProjectChannelSchedule_FRI  ProjectChannelSchedule_DayOfWeek = 5
	ProjectChannelSchedule_SAT  ProjectChannelSchedule_DayOfWeek = 6
	ProjectChannelSchedule_SUN  ProjectChannelSchedule_DayOfWeek = 7
)

func (ProjectChannelSchedule_DayOfWeek) Descriptor

func (ProjectChannelSchedule_DayOfWeek) Enum

func (ProjectChannelSchedule_DayOfWeek) EnumDescriptor deprecated

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

Deprecated: Use ProjectChannelSchedule_DayOfWeek.Descriptor instead.

func (ProjectChannelSchedule_DayOfWeek) Number

func (ProjectChannelSchedule_DayOfWeek) String

func (ProjectChannelSchedule_DayOfWeek) Type

type ProjectChannelServer

type ProjectChannelServer interface {
	// Creates a new ProjectChannel. ProjectChannel is a channel that delivers a Notification to the Project when the Notification is created. When creating a ProjectChannel, one Protocol must be selected, and a Notification is dispatched via the selected Protocol.
	Create(context.Context, *CreateProjectChannelRequest) (*ProjectChannelInfo, error)
	// Updates a specific ProjectChannel. A ProjectChannel that has already been configured cannot be changed. Instead, the data required for dispatching Notifications to a ProjectChannel can be updated.
	Update(context.Context, *UpdateProjectChannelRequest) (*ProjectChannelInfo, error)
	// Sets a schedule for a ProjectChannel. A schedule defines the time to receive a Notification. When a Notification is created, you can set the day of the week and time you want to receive it. When you set the day of the week, you can receive a notification only on the day of the week you set. If you also set the start time and end time with the day of the week, you can receive a Notification only at the scheduled time on the day of the week you set. If there is no schedule set in a ProjectChannel, Notifications will be dispatched at all times via the ProjectChannel.
	SetSchedule(context.Context, *UpdateProjectChannelScheduleRequest) (*ProjectChannelInfo, error)
	// Sets a subscription for a ProjectChannel. A subscription is a topic for channels to subscribe to and get notified about. If a ProjectChannel has subscriptions, a Notification is dispatched only if the topic of the Notification is the same as the one set in the subscriptions. If there is no subscription in a ProjectChannel, all Notifications will be dispatched.
	SetSubscription(context.Context, *UpdateProjectChannelSubscriptionRequest) (*ProjectChannelInfo, error)
	// Enables a specific ProjectChannel. If a ProjectChannel is enabled, the ProjectChannel can be used and the Notification can be dispatched. Even if a ProjectChannel is enabled, if the Protocol used in the ProjectChannel is disabled, the Notification is not dispatched.
	Enable(context.Context, *ProjectChannelRequest) (*ProjectChannelInfo, error)
	// Disables a specific ProjectChannel. If a ProjectChannel is disabled, the Notification is not dispatched, even if it is created.
	Disable(context.Context, *ProjectChannelRequest) (*ProjectChannelInfo, error)
	// Deletes a specific ProjectChannel.
	Delete(context.Context, *ProjectChannelRequest) (*empty.Empty, error)
	// Gets a specific ProjectChannel. Prints detailed information about the ProjectChannel.
	Get(context.Context, *ProjectChannelRequest) (*ProjectChannelInfo, error)
	// Gets a list of all ProjectChannels. You can use a query to get a filtered list of ProjectChannels.
	List(context.Context, *ProjectChannelQuery) (*ProjectChannelsInfo, error)
	Stat(context.Context, *ProjectChannelStatQuery) (*_struct.Struct, error)
	// contains filtered or unexported methods
}

ProjectChannelServer is the server API for ProjectChannel service. All implementations must embed UnimplementedProjectChannelServer for forward compatibility

type ProjectChannelStatQuery

type ProjectChannelStatQuery struct {

	// Statistics Query format provided by SpaceONE. Please check the link for more information.
	Query *v2.StatisticsQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectChannelStatQuery) Descriptor deprecated

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

Deprecated: Use ProjectChannelStatQuery.ProtoReflect.Descriptor instead.

func (*ProjectChannelStatQuery) GetQuery

func (*ProjectChannelStatQuery) ProtoMessage

func (*ProjectChannelStatQuery) ProtoMessage()

func (*ProjectChannelStatQuery) ProtoReflect

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

func (*ProjectChannelStatQuery) Reset

func (x *ProjectChannelStatQuery) Reset()

func (*ProjectChannelStatQuery) String

func (x *ProjectChannelStatQuery) String() string

type ProjectChannelsInfo

type ProjectChannelsInfo struct {

	// List of queried project channels.
	Results []*ProjectChannelInfo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// Total counts of queried project channels.
	TotalCount int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}
{
   "results": [
       {
           "project_channel_id": "project-ch-473efcfde4b1",
           "name": "Email Groups",
           "state": "ENABLED",
           "data": {
               "email": "sykim1@cloudforet.io, sykim2@cloudforet.io"
           },
           "notification_level": "LV1",
           "tags": {},
           "protocol_id": "protocol-e000a677ebdb",
           "project_id": "project-28cf4f2e6645",
           "domain_id": "domain-58010aa2e451",
           "created_at": "2022-04-18T01:22:01.182Z"
       },
       {
           "project_channel_id": "project-ch-98845ba0f975",
           "name": "Song Email",
           "state": "ENABLED",
           "data": {
               "email": "sykim@mz.co.kr"
           },
           "notification_level": "LV1",
           "tags": {},
           "protocol_id": "protocol-e000a677ebdb",
           "project_id": "project-28cf4f2e6645",
           "domain_id": "domain-58010aa2e451",
           "created_at": "2022-04-18T01:17:40.741Z"
       }
   ],
   "total_count": 2
}

func (*ProjectChannelsInfo) Descriptor deprecated

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

Deprecated: Use ProjectChannelsInfo.ProtoReflect.Descriptor instead.

func (*ProjectChannelsInfo) GetResults

func (x *ProjectChannelsInfo) GetResults() []*ProjectChannelInfo

func (*ProjectChannelsInfo) GetTotalCount

func (x *ProjectChannelsInfo) GetTotalCount() int32

func (*ProjectChannelsInfo) ProtoMessage

func (*ProjectChannelsInfo) ProtoMessage()

func (*ProjectChannelsInfo) ProtoReflect

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

func (*ProjectChannelsInfo) Reset

func (x *ProjectChannelsInfo) Reset()

func (*ProjectChannelsInfo) String

func (x *ProjectChannelsInfo) String() string

type ProtocolClient

type ProtocolClient interface {
	// Creates a new Protocol. When creating a protocol, you must specify the plugins provided from the repository, and you must also set the credentials to be set in the plugin if necessary.
	Create(ctx context.Context, in *CreateProtocolRequest, opts ...grpc.CallOption) (*ProtocolInfo, error)
	// Updates a specific Protocol. The method `update` can update the name and tags only. If you want to update the plugin version or options, you can use `update_plugin` method.
	Update(ctx context.Context, in *UpdateProtocolRequest, opts ...grpc.CallOption) (*ProtocolInfo, error)
	// Updates a plugin for a Protocol. It is usually used when redeploying a plugin to a new version.
	UpdatePlugin(ctx context.Context, in *UpdateProtocolPluginRequest, opts ...grpc.CallOption) (*ProtocolInfo, error)
	// Enables a specific Protocol. If the Protocol is enabled, the Protocol can be used and the Notification can be dispatched.
	Enable(ctx context.Context, in *ProtocolRequest, opts ...grpc.CallOption) (*ProtocolInfo, error)
	// Disables a specific Protocol. If a Protocol is disabled, the Notification will not be dispatched, even if it is created.
	Disable(ctx context.Context, in *ProtocolRequest, opts ...grpc.CallOption) (*ProtocolInfo, error)
	// Deletes a specific Protocol. If there exists a channel using the Protocol, it cannot be deleted.
	Delete(ctx context.Context, in *ProtocolRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Gets a specific Protocol. Prints detailed information about the Protocol.
	Get(ctx context.Context, in *ProtocolRequest, opts ...grpc.CallOption) (*ProtocolInfo, error)
	// Gets a list of Protocols. You can use a query to get a filtered list of Protocols.
	List(ctx context.Context, in *ProtocolQuery, opts ...grpc.CallOption) (*ProtocolsInfo, error)
	Stat(ctx context.Context, in *ProtocolStatQuery, opts ...grpc.CallOption) (*_struct.Struct, error)
}

ProtocolClient is the client API for Protocol service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewProtocolClient

func NewProtocolClient(cc grpc.ClientConnInterface) ProtocolClient

type ProtocolInfo

type ProtocolInfo struct {

	// The ID of Protocol.
	ProtocolId string `protobuf:"bytes,1,opt,name=protocol_id,json=protocolId,proto3" json:"protocol_id,omitempty"`
	// The name of Protocol.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The state of Protocol.
	// ENABLED or DISABLED only.
	State ProtocolInfo_ProtocolState `protobuf:"varint,3,opt,name=state,proto3,enum=spaceone.api.notification.v1.ProtocolInfo_ProtocolState" json:"state,omitempty"`
	// desc : The type of Protocol.
	// INTERNAL or EXTERNAL only.
	ProtocolType ProtocolInfo_ProtocolType `` /* 158-byte string literal not displayed */
	// desc : Resource type for Protocol. Currently only identity.Project or identity.User can be set.
	ResourceType string `protobuf:"bytes,5,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
	// desc : The capability information for the Protocol. It included supported schema for the Protocol.
	Capability *_struct.Struct `protobuf:"bytes,6,opt,name=capability,proto3" json:"capability,omitempty"`
	// the plugin information set in Protocol.
	PluginInfo *PluginInfo `protobuf:"bytes,7,opt,name=plugin_info,json=pluginInfo,proto3" json:"plugin_info,omitempty"`
	// The tags for protocol.
	Tags *_struct.Struct `protobuf:"bytes,8,opt,name=tags,proto3" json:"tags,omitempty"`
	// The ID of domain to which the Protocol belongs.
	DomainId string `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	// Protocol creation time.
	CreatedAt string `protobuf:"bytes,31,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}
{
   "protocol_id": "protocol-123546789012",
   "name": "Email",
   "state": "ENABLED",
   "protocol_type": "EXTERNAL",
   "capability": {
       "supported_schema": [
           "email_smtp"
       ]
   },
   "plugin_info": {
       "plugin_id": "plugin-email-noti-protocol",
       "version": "1.0.1",
       "options": {},
       "secret_id": "secret-123546789012",
       "metadata": {
           "data": {
               "schema": {
                   "properties": {
                       "email": {
                           "pattern": "^[\\W]*([\\w+\\-.%]+@[\\w\\-.]+\\.[A-Za-z]{2,4}[\\W]*,{1}[\\W]*)*([\\w+\\-.%]+@[\\w\\-.]+\\.[A-Za-z]{2,4})[\\W]*$",
                           "examples": [
                               "user1@test.com, user2@test.com"
                           ],
                           "minLength": 10.0,
                           "description": "Email address to receive notifications",
                           "type": "string",
                           "title": "Email Address"
                       }
                   },
                   "required": [
                       "email"
                   ],
                   "type": "object"
               }
           },
           "data_type": "PLAIN_TEXT"
       },
       "upgrade_mode": "AUTO"
   },
   "tags": {},
   "domain_id": "domain-123546789012",
   "created_at": "2022-01-01T07:55:57.043Z"
}

func (*ProtocolInfo) Descriptor deprecated

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

Deprecated: Use ProtocolInfo.ProtoReflect.Descriptor instead.

func (*ProtocolInfo) GetCapability

func (x *ProtocolInfo) GetCapability() *_struct.Struct

func (*ProtocolInfo) GetCreatedAt

func (x *ProtocolInfo) GetCreatedAt() string

func (*ProtocolInfo) GetDomainId

func (x *ProtocolInfo) GetDomainId() string

func (*ProtocolInfo) GetName

func (x *ProtocolInfo) GetName() string

func (*ProtocolInfo) GetPluginInfo

func (x *ProtocolInfo) GetPluginInfo() *PluginInfo

func (*ProtocolInfo) GetProtocolId

func (x *ProtocolInfo) GetProtocolId() string

func (*ProtocolInfo) GetProtocolType

func (x *ProtocolInfo) GetProtocolType() ProtocolInfo_ProtocolType

func (*ProtocolInfo) GetResourceType

func (x *ProtocolInfo) GetResourceType() string

func (*ProtocolInfo) GetState

func (*ProtocolInfo) GetTags

func (x *ProtocolInfo) GetTags() *_struct.Struct

func (*ProtocolInfo) ProtoMessage

func (*ProtocolInfo) ProtoMessage()

func (*ProtocolInfo) ProtoReflect

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

func (*ProtocolInfo) Reset

func (x *ProtocolInfo) Reset()

func (*ProtocolInfo) String

func (x *ProtocolInfo) String() string

type ProtocolInfo_ProtocolState

type ProtocolInfo_ProtocolState int32
const (
	ProtocolInfo_NONE     ProtocolInfo_ProtocolState = 0
	ProtocolInfo_ENABLED  ProtocolInfo_ProtocolState = 1
	ProtocolInfo_DISABLED ProtocolInfo_ProtocolState = 2
)

func (ProtocolInfo_ProtocolState) Descriptor

func (ProtocolInfo_ProtocolState) Enum

func (ProtocolInfo_ProtocolState) EnumDescriptor deprecated

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

Deprecated: Use ProtocolInfo_ProtocolState.Descriptor instead.

func (ProtocolInfo_ProtocolState) Number

func (ProtocolInfo_ProtocolState) String

func (ProtocolInfo_ProtocolState) Type

type ProtocolInfo_ProtocolType

type ProtocolInfo_ProtocolType int32
const (
	ProtocolInfo_PROTOCOL_TYPE_NONE ProtocolInfo_ProtocolType = 0
	ProtocolInfo_INTERNAL           ProtocolInfo_ProtocolType = 1
	ProtocolInfo_EXTERNAL           ProtocolInfo_ProtocolType = 2
)

func (ProtocolInfo_ProtocolType) Descriptor

func (ProtocolInfo_ProtocolType) Enum

func (ProtocolInfo_ProtocolType) EnumDescriptor deprecated

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

Deprecated: Use ProtocolInfo_ProtocolType.Descriptor instead.

func (ProtocolInfo_ProtocolType) Number

func (ProtocolInfo_ProtocolType) String

func (x ProtocolInfo_ProtocolType) String() string

func (ProtocolInfo_ProtocolType) Type

type ProtocolQuery

type ProtocolQuery struct {

	// Query format provided by SpaceONE. Please check the link for more information.
	// +optional
	Query *v2.Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// The ID of Protocol.
	// +optional
	ProtocolId string `protobuf:"bytes,2,opt,name=protocol_id,json=protocolId,proto3" json:"protocol_id,omitempty"`
	// The name of Protocol.
	// +optional
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// The state of Protocol. ENABLED or DISABLED only.
	// +optional
	State ProtocolQuery_ProtocolState `` /* 126-byte string literal not displayed */
	// The type of Protocol. INTERNAL or EXTERNAL only.
	// +optional
	ProtocolType ProtocolQuery_ProtocolType `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}
{
   "query": {}
}

func (*ProtocolQuery) Descriptor deprecated

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

Deprecated: Use ProtocolQuery.ProtoReflect.Descriptor instead.

func (*ProtocolQuery) GetName

func (x *ProtocolQuery) GetName() string

func (*ProtocolQuery) GetProtocolId

func (x *ProtocolQuery) GetProtocolId() string

func (*ProtocolQuery) GetProtocolType

func (x *ProtocolQuery) GetProtocolType() ProtocolQuery_ProtocolType

func (*ProtocolQuery) GetQuery

func (x *ProtocolQuery) GetQuery() *v2.Query

func (*ProtocolQuery) GetState

func (*ProtocolQuery) ProtoMessage

func (*ProtocolQuery) ProtoMessage()

func (*ProtocolQuery) ProtoReflect

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

func (*ProtocolQuery) Reset

func (x *ProtocolQuery) Reset()

func (*ProtocolQuery) String

func (x *ProtocolQuery) String() string

type ProtocolQuery_ProtocolState

type ProtocolQuery_ProtocolState int32
const (
	ProtocolQuery_NONE     ProtocolQuery_ProtocolState = 0
	ProtocolQuery_ENABLED  ProtocolQuery_ProtocolState = 1
	ProtocolQuery_DISABLED ProtocolQuery_ProtocolState = 2
)

func (ProtocolQuery_ProtocolState) Descriptor

func (ProtocolQuery_ProtocolState) Enum

func (ProtocolQuery_ProtocolState) EnumDescriptor deprecated

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

Deprecated: Use ProtocolQuery_ProtocolState.Descriptor instead.

func (ProtocolQuery_ProtocolState) Number

func (ProtocolQuery_ProtocolState) String

func (ProtocolQuery_ProtocolState) Type

type ProtocolQuery_ProtocolType

type ProtocolQuery_ProtocolType int32
const (
	ProtocolQuery_PROTOCOL_TYPE_NONE ProtocolQuery_ProtocolType = 0
	ProtocolQuery_INTERNAL           ProtocolQuery_ProtocolType = 1
	ProtocolQuery_EXTERNAL           ProtocolQuery_ProtocolType = 2
)

func (ProtocolQuery_ProtocolType) Descriptor

func (ProtocolQuery_ProtocolType) Enum

func (ProtocolQuery_ProtocolType) EnumDescriptor deprecated

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

Deprecated: Use ProtocolQuery_ProtocolType.Descriptor instead.

func (ProtocolQuery_ProtocolType) Number

func (ProtocolQuery_ProtocolType) String

func (ProtocolQuery_ProtocolType) Type

type ProtocolRequest

type ProtocolRequest struct {

	// The ID of Protocol.
	ProtocolId string `protobuf:"bytes,1,opt,name=protocol_id,json=protocolId,proto3" json:"protocol_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "protocol_id": "protocol-123456789012"
}

func (*ProtocolRequest) Descriptor deprecated

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

Deprecated: Use ProtocolRequest.ProtoReflect.Descriptor instead.

func (*ProtocolRequest) GetProtocolId

func (x *ProtocolRequest) GetProtocolId() string

func (*ProtocolRequest) ProtoMessage

func (*ProtocolRequest) ProtoMessage()

func (*ProtocolRequest) ProtoReflect

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

func (*ProtocolRequest) Reset

func (x *ProtocolRequest) Reset()

func (*ProtocolRequest) String

func (x *ProtocolRequest) String() string

type ProtocolServer

type ProtocolServer interface {
	// Creates a new Protocol. When creating a protocol, you must specify the plugins provided from the repository, and you must also set the credentials to be set in the plugin if necessary.
	Create(context.Context, *CreateProtocolRequest) (*ProtocolInfo, error)
	// Updates a specific Protocol. The method `update` can update the name and tags only. If you want to update the plugin version or options, you can use `update_plugin` method.
	Update(context.Context, *UpdateProtocolRequest) (*ProtocolInfo, error)
	// Updates a plugin for a Protocol. It is usually used when redeploying a plugin to a new version.
	UpdatePlugin(context.Context, *UpdateProtocolPluginRequest) (*ProtocolInfo, error)
	// Enables a specific Protocol. If the Protocol is enabled, the Protocol can be used and the Notification can be dispatched.
	Enable(context.Context, *ProtocolRequest) (*ProtocolInfo, error)
	// Disables a specific Protocol. If a Protocol is disabled, the Notification will not be dispatched, even if it is created.
	Disable(context.Context, *ProtocolRequest) (*ProtocolInfo, error)
	// Deletes a specific Protocol. If there exists a channel using the Protocol, it cannot be deleted.
	Delete(context.Context, *ProtocolRequest) (*empty.Empty, error)
	// Gets a specific Protocol. Prints detailed information about the Protocol.
	Get(context.Context, *ProtocolRequest) (*ProtocolInfo, error)
	// Gets a list of Protocols. You can use a query to get a filtered list of Protocols.
	List(context.Context, *ProtocolQuery) (*ProtocolsInfo, error)
	Stat(context.Context, *ProtocolStatQuery) (*_struct.Struct, error)
	// contains filtered or unexported methods
}

ProtocolServer is the server API for Protocol service. All implementations must embed UnimplementedProtocolServer for forward compatibility

type ProtocolStatQuery

type ProtocolStatQuery struct {

	// Statistics Query format provided by SpaceONE. Please check the link for more information.
	Query *v2.StatisticsQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*ProtocolStatQuery) Descriptor deprecated

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

Deprecated: Use ProtocolStatQuery.ProtoReflect.Descriptor instead.

func (*ProtocolStatQuery) GetQuery

func (x *ProtocolStatQuery) GetQuery() *v2.StatisticsQuery

func (*ProtocolStatQuery) ProtoMessage

func (*ProtocolStatQuery) ProtoMessage()

func (*ProtocolStatQuery) ProtoReflect

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

func (*ProtocolStatQuery) Reset

func (x *ProtocolStatQuery) Reset()

func (*ProtocolStatQuery) String

func (x *ProtocolStatQuery) String() string

type ProtocolsInfo

type ProtocolsInfo struct {

	// List of queried protocols.
	Results []*ProtocolInfo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// Total counts of queried Protocols.
	TotalCount int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}
{
      "results":[
         {
            "protocol_id":"protocol-123456789012",
            "name":"Email",
            "state":"ENABLED",
            "protocol_type":"EXTERNAL",
            "capability":{
               "supported_schema":[
                  "email_smtp"
               ]
            },
            "plugin_info":{
               "plugin_id":"plugin-email-noti-protocol",
               "version":"1.0.1",
               "options":{

               },
               "secret_id":"secret-123456789012",
               "metadata":{
                  "data_type":"PLAIN_TEXT",
                  "data":{
                     "schema":{
                        "properties":{
                           "email":{
                              "pattern":"^[\\W]*([\\w+\\-.%]+@[\\w\\-.]+\\.[A-Za-z]{2,4}[\\W]*,{1}[\\W]*)*([\\w+\\-.%]+@[\\w\\-.]+\\.[A-Za-z]{2,4})[\\W]*$",
                              "examples":[
                                 "user1@test.com, user2@test.com"
                              ],
                              "minLength":10.0,
                              "description":"Email address to receive notifications",
                              "type":"string",
                              "title":"Email Address"
                           }
                        },
                        "required":[
                           "email"
                        ],
                        "type":"object"
                     }
                  }
               },
               "upgrade_mode":"AUTO"
            },
            "tags":{

            },
            "domain_id":"domain-123456789012",
            "created_at":"2022-01-01T07:55:57.043Z"
         }
      ],
      "total_count":1
}

func (*ProtocolsInfo) Descriptor deprecated

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

Deprecated: Use ProtocolsInfo.ProtoReflect.Descriptor instead.

func (*ProtocolsInfo) GetResults

func (x *ProtocolsInfo) GetResults() []*ProtocolInfo

func (*ProtocolsInfo) GetTotalCount

func (x *ProtocolsInfo) GetTotalCount() int32

func (*ProtocolsInfo) ProtoMessage

func (*ProtocolsInfo) ProtoMessage()

func (*ProtocolsInfo) ProtoReflect

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

func (*ProtocolsInfo) Reset

func (x *ProtocolsInfo) Reset()

func (*ProtocolsInfo) String

func (x *ProtocolsInfo) String() string

type PushNotificationRequest

type PushNotificationRequest struct {

	// The ID of Protocol.
	ProtocolId string          `protobuf:"bytes,1,opt,name=protocol_id,json=protocolId,proto3" json:"protocol_id,omitempty"`
	Data       string          `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Message    *_struct.Struct `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// +optional
	NotificationType string `protobuf:"bytes,4,opt,name=notification_type,json=notificationType,proto3" json:"notification_type,omitempty"`
	// +optional
	NotificationLevel string `protobuf:"bytes,5,opt,name=notification_level,json=notificationLevel,proto3" json:"notification_level,omitempty"`
	// +optional
	Topic string `protobuf:"bytes,6,opt,name=topic,proto3" json:"topic,omitempty"`
	// contains filtered or unexported fields
}
{
   "protocol_id": "protocol-fb30cb6c28d6",
   "data": {
       "phone_number": "01012345678"
   },
   "message": {
       "tags": [
           {
               "key": "project_id",
               "value": "project-xxxx"
           },
           {
               "key": "project_name",
               "value": "Test Project"
           },
           {
               "key": "resource_id",
               "value": "server-yyyyy"
           },
           {
               "key": "resource_name",
               "value": "web-server-001"
           }
       ],
       "description": "This is Sample Message",
       "title": "Sample"
   }
}

func (*PushNotificationRequest) Descriptor deprecated

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

Deprecated: Use PushNotificationRequest.ProtoReflect.Descriptor instead.

func (*PushNotificationRequest) GetData

func (x *PushNotificationRequest) GetData() string

func (*PushNotificationRequest) GetMessage

func (x *PushNotificationRequest) GetMessage() *_struct.Struct

func (*PushNotificationRequest) GetNotificationLevel

func (x *PushNotificationRequest) GetNotificationLevel() string

func (*PushNotificationRequest) GetNotificationType

func (x *PushNotificationRequest) GetNotificationType() string

func (*PushNotificationRequest) GetProtocolId

func (x *PushNotificationRequest) GetProtocolId() string

func (*PushNotificationRequest) GetTopic

func (x *PushNotificationRequest) GetTopic() string

func (*PushNotificationRequest) ProtoMessage

func (*PushNotificationRequest) ProtoMessage()

func (*PushNotificationRequest) ProtoReflect

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

func (*PushNotificationRequest) Reset

func (x *PushNotificationRequest) Reset()

func (*PushNotificationRequest) String

func (x *PushNotificationRequest) String() string

type UnimplementedNotificationServer

type UnimplementedNotificationServer struct {
}

UnimplementedNotificationServer must be embedded to have forward compatible implementations.

func (UnimplementedNotificationServer) Create

func (UnimplementedNotificationServer) Delete

func (UnimplementedNotificationServer) Get

func (UnimplementedNotificationServer) List

func (UnimplementedNotificationServer) Push

func (UnimplementedNotificationServer) SetRead

func (UnimplementedNotificationServer) Stat

type UnimplementedProjectChannelServer

type UnimplementedProjectChannelServer struct {
}

UnimplementedProjectChannelServer must be embedded to have forward compatible implementations.

func (UnimplementedProjectChannelServer) Create

func (UnimplementedProjectChannelServer) Delete

func (UnimplementedProjectChannelServer) Disable

func (UnimplementedProjectChannelServer) Enable

func (UnimplementedProjectChannelServer) Get

func (UnimplementedProjectChannelServer) List

func (UnimplementedProjectChannelServer) Stat

func (UnimplementedProjectChannelServer) Update

type UnimplementedProtocolServer

type UnimplementedProtocolServer struct {
}

UnimplementedProtocolServer must be embedded to have forward compatible implementations.

func (UnimplementedProtocolServer) Create

func (UnimplementedProtocolServer) Delete

func (UnimplementedProtocolServer) Disable

func (UnimplementedProtocolServer) Enable

func (UnimplementedProtocolServer) Get

func (UnimplementedProtocolServer) List

func (UnimplementedProtocolServer) Stat

func (UnimplementedProtocolServer) Update

func (UnimplementedProtocolServer) UpdatePlugin

type UnimplementedUserChannelServer

type UnimplementedUserChannelServer struct {
}

UnimplementedUserChannelServer must be embedded to have forward compatible implementations.

func (UnimplementedUserChannelServer) Create

func (UnimplementedUserChannelServer) Delete

func (UnimplementedUserChannelServer) Disable

func (UnimplementedUserChannelServer) Enable

func (UnimplementedUserChannelServer) Get

func (UnimplementedUserChannelServer) List

func (UnimplementedUserChannelServer) SetSchedule

func (UnimplementedUserChannelServer) Stat

func (UnimplementedUserChannelServer) Update

type UnsafeNotificationServer

type UnsafeNotificationServer interface {
	// contains filtered or unexported methods
}

UnsafeNotificationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NotificationServer will result in compilation errors.

type UnsafeProjectChannelServer

type UnsafeProjectChannelServer interface {
	// contains filtered or unexported methods
}

UnsafeProjectChannelServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProjectChannelServer will result in compilation errors.

type UnsafeProtocolServer

type UnsafeProtocolServer interface {
	// contains filtered or unexported methods
}

UnsafeProtocolServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProtocolServer will result in compilation errors.

type UnsafeUserChannelServer

type UnsafeUserChannelServer interface {
	// contains filtered or unexported methods
}

UnsafeUserChannelServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserChannelServer will result in compilation errors.

type UpdateProjectChannelRequest

type UpdateProjectChannelRequest struct {

	// The ID of project channel.
	ProjectChannelId string `protobuf:"bytes,1,opt,name=project_channel_id,json=projectChannelId,proto3" json:"project_channel_id,omitempty"`
	// The name of Project Channel. It can have a maximum of 255 characters.
	// +optional
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The data for using project channel.
	// This data is encrypted and stored in the Secret service if JSON schema in the protocol's metadata is set to SECRET type.
	// In this case, the secret ID that is stored in the security service will be returned and the data value will be empty.
	// if JSON schema in the protocol's metadata is set to PLAIN_TEXT type, This data is not encrypted and stored directly in the DB.
	// +optional
	Data *_struct.Struct `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// Set the level of notification.
	// If a notification has a level and a notification level that this channel can receive is set, a notification is dispatched only if the notification level is the same.
	// +optional
	NotificationLevel NotificationLevel `` /* 165-byte string literal not displayed */
	// The tags for project channel.
	// +optional
	Tags *_struct.Struct `protobuf:"bytes,7,opt,name=tags,proto3" json:"tags,omitempty"`
	// The ID of domain.
	DomainId string `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "project_channel_id": "project-ch-488df94d026d",
   "name": "sms2-test",
   "data": {
       "phone_number": "01033334444"
   },
   "notification_level": "LV2",
   "tags": {
       "a": "b"
   }
}

func (*UpdateProjectChannelRequest) Descriptor deprecated

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

Deprecated: Use UpdateProjectChannelRequest.ProtoReflect.Descriptor instead.

func (*UpdateProjectChannelRequest) GetData

func (*UpdateProjectChannelRequest) GetDomainId

func (x *UpdateProjectChannelRequest) GetDomainId() string

func (*UpdateProjectChannelRequest) GetName

func (x *UpdateProjectChannelRequest) GetName() string

func (*UpdateProjectChannelRequest) GetNotificationLevel

func (x *UpdateProjectChannelRequest) GetNotificationLevel() NotificationLevel

func (*UpdateProjectChannelRequest) GetProjectChannelId

func (x *UpdateProjectChannelRequest) GetProjectChannelId() string

func (*UpdateProjectChannelRequest) GetTags

func (*UpdateProjectChannelRequest) ProtoMessage

func (*UpdateProjectChannelRequest) ProtoMessage()

func (*UpdateProjectChannelRequest) ProtoReflect

func (*UpdateProjectChannelRequest) Reset

func (x *UpdateProjectChannelRequest) Reset()

func (*UpdateProjectChannelRequest) String

func (x *UpdateProjectChannelRequest) String() string

type UpdateProjectChannelScheduleRequest

type UpdateProjectChannelScheduleRequest struct {

	// The ID of project channel.
	ProjectChannelId string `protobuf:"bytes,1,opt,name=project_channel_id,json=projectChannelId,proto3" json:"project_channel_id,omitempty"`
	// Indicates whether schedule will be used.
	IsScheduled bool `protobuf:"varint,2,opt,name=is_scheduled,json=isScheduled,proto3" json:"is_scheduled,omitempty"`
	// Schedule for which you want to receive notifications through the project channel.
	// +optional
	Schedule *ProjectChannelSchedule `protobuf:"bytes,3,opt,name=schedule,proto3" json:"schedule,omitempty"`
	// contains filtered or unexported fields
}
{
   "project_channel_id": "project-ch-488df94d026d",
   "is_scheduled": true,
   "schedule": {
       "day_of_week": [
           "MON",
           "WED",
           "FRI"
       ],
       "end_hour": 9
   }
}

func (*UpdateProjectChannelScheduleRequest) Descriptor deprecated

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

Deprecated: Use UpdateProjectChannelScheduleRequest.ProtoReflect.Descriptor instead.

func (*UpdateProjectChannelScheduleRequest) GetIsScheduled

func (x *UpdateProjectChannelScheduleRequest) GetIsScheduled() bool

func (*UpdateProjectChannelScheduleRequest) GetProjectChannelId

func (x *UpdateProjectChannelScheduleRequest) GetProjectChannelId() string

func (*UpdateProjectChannelScheduleRequest) GetSchedule

func (*UpdateProjectChannelScheduleRequest) ProtoMessage

func (*UpdateProjectChannelScheduleRequest) ProtoMessage()

func (*UpdateProjectChannelScheduleRequest) ProtoReflect

func (*UpdateProjectChannelScheduleRequest) Reset

func (*UpdateProjectChannelScheduleRequest) String

type UpdateProjectChannelSubscriptionRequest

type UpdateProjectChannelSubscriptionRequest struct {

	// The ID of project channel.
	ProjectChannelId string `protobuf:"bytes,1,opt,name=project_channel_id,json=projectChannelId,proto3" json:"project_channel_id,omitempty"`
	// Indicates whether subscriptions will be used.
	IsSubscribe bool `protobuf:"varint,2,opt,name=is_subscribe,json=isSubscribe,proto3" json:"is_subscribe,omitempty"`
	// When using subscriptions, it indicates the topic list to subscription.
	// If is_subscribe is set to false, this value is ignored.
	// +optional
	Subscriptions []string `protobuf:"bytes,3,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"`
	// contains filtered or unexported fields
}
{
   "project_channel_id": "project-ch-cff007433a23",
   "is_subscribe": true,
   "subscriptions": [
       "monitoring.Alert"
   ]
}

func (*UpdateProjectChannelSubscriptionRequest) Descriptor deprecated

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

Deprecated: Use UpdateProjectChannelSubscriptionRequest.ProtoReflect.Descriptor instead.

func (*UpdateProjectChannelSubscriptionRequest) GetIsSubscribe

func (x *UpdateProjectChannelSubscriptionRequest) GetIsSubscribe() bool

func (*UpdateProjectChannelSubscriptionRequest) GetProjectChannelId

func (x *UpdateProjectChannelSubscriptionRequest) GetProjectChannelId() string

func (*UpdateProjectChannelSubscriptionRequest) GetSubscriptions

func (x *UpdateProjectChannelSubscriptionRequest) GetSubscriptions() []string

func (*UpdateProjectChannelSubscriptionRequest) ProtoMessage

func (*UpdateProjectChannelSubscriptionRequest) ProtoReflect

func (*UpdateProjectChannelSubscriptionRequest) Reset

func (*UpdateProjectChannelSubscriptionRequest) String

type UpdateProtocolPluginRequest

type UpdateProtocolPluginRequest struct {

	// The ID of Protocol.
	ProtocolId string `protobuf:"bytes,1,opt,name=protocol_id,json=protocolId,proto3" json:"protocol_id,omitempty"`
	// The version of plugin you want to update. Version means the tags of plugin container image in repository that specific market place.
	// +optional
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// The Options that contains information about using plugin.
	// +optional
	Options *_struct.Struct `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	// The ID of domain to which the Protocol belongs.
	DomainId string `protobuf:"bytes,11,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "protocol_id": "protocol-123456789012",
   "version": "1.0.2",
   "options": {}
}

func (*UpdateProtocolPluginRequest) Descriptor deprecated

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

Deprecated: Use UpdateProtocolPluginRequest.ProtoReflect.Descriptor instead.

func (*UpdateProtocolPluginRequest) GetDomainId

func (x *UpdateProtocolPluginRequest) GetDomainId() string

func (*UpdateProtocolPluginRequest) GetOptions

func (x *UpdateProtocolPluginRequest) GetOptions() *_struct.Struct

func (*UpdateProtocolPluginRequest) GetProtocolId

func (x *UpdateProtocolPluginRequest) GetProtocolId() string

func (*UpdateProtocolPluginRequest) GetVersion

func (x *UpdateProtocolPluginRequest) GetVersion() string

func (*UpdateProtocolPluginRequest) ProtoMessage

func (*UpdateProtocolPluginRequest) ProtoMessage()

func (*UpdateProtocolPluginRequest) ProtoReflect

func (*UpdateProtocolPluginRequest) Reset

func (x *UpdateProtocolPluginRequest) Reset()

func (*UpdateProtocolPluginRequest) String

func (x *UpdateProtocolPluginRequest) String() string

type UpdateProtocolRequest

type UpdateProtocolRequest struct {

	// The ID of Protocol.
	ProtocolId string `protobuf:"bytes,1,opt,name=protocol_id,json=protocolId,proto3" json:"protocol_id,omitempty"`
	// The Name of Protocol. It can have a maximum of 255 characters.
	// +optional
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The tags for protocol. When updating, existing tag information is deleted all and will be updated with new.
	// +optional
	Tags *_struct.Struct `protobuf:"bytes,3,opt,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}
{
   "protocol_id": "protocol-123456789012",
   "name": "Email-test",
   "tags": {
       "type": "test"
   }
}

func (*UpdateProtocolRequest) Descriptor deprecated

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

Deprecated: Use UpdateProtocolRequest.ProtoReflect.Descriptor instead.

func (*UpdateProtocolRequest) GetName

func (x *UpdateProtocolRequest) GetName() string

func (*UpdateProtocolRequest) GetProtocolId

func (x *UpdateProtocolRequest) GetProtocolId() string

func (*UpdateProtocolRequest) GetTags

func (x *UpdateProtocolRequest) GetTags() *_struct.Struct

func (*UpdateProtocolRequest) ProtoMessage

func (*UpdateProtocolRequest) ProtoMessage()

func (*UpdateProtocolRequest) ProtoReflect

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

func (*UpdateProtocolRequest) Reset

func (x *UpdateProtocolRequest) Reset()

func (*UpdateProtocolRequest) String

func (x *UpdateProtocolRequest) String() string

type UpdateUserChannelRequest

type UpdateUserChannelRequest struct {

	// The ID of user channel.
	UserChannelId string `protobuf:"bytes,1,opt,name=user_channel_id,json=userChannelId,proto3" json:"user_channel_id,omitempty"`
	// The name of user channel. It can have a maximum of 255 characters.
	// +optional
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The data for using user channel.
	// This data is encrypted and stored in the Secret service if JSON schema in the protocol's metadata is set to SECRET type.
	// In this case, the secret ID that is stored in the security service will be returned and the data value will be empty.
	// if JSON schema in the protocol's metadata is set to PLAIN_TEXT type, This data is not encrypted and stored directly in the DB.
	// +optional
	Data *_struct.Struct `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// Set the level of notification.
	// If a notification has a level and a notification level that this channel can receive is set, a notification is dispatched only if the notification level is the same.
	// +optional
	Schedule *UserChannelSchedule `protobuf:"bytes,4,opt,name=schedule,proto3" json:"schedule,omitempty"`
	// The tags for user channel.
	// +optional
	Tags *_struct.Struct `protobuf:"bytes,5,opt,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}
{
   "user_channel_id": "user-ch-123456789012",
   "name": "Email2",
   "data": {
       "email": "user1@gmail.com"
   },
   "tags": {
       "type": "test"
   }
}

func (*UpdateUserChannelRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserChannelRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserChannelRequest) GetData

func (x *UpdateUserChannelRequest) GetData() *_struct.Struct

func (*UpdateUserChannelRequest) GetName

func (x *UpdateUserChannelRequest) GetName() string

func (*UpdateUserChannelRequest) GetSchedule

func (*UpdateUserChannelRequest) GetTags

func (x *UpdateUserChannelRequest) GetTags() *_struct.Struct

func (*UpdateUserChannelRequest) GetUserChannelId

func (x *UpdateUserChannelRequest) GetUserChannelId() string

func (*UpdateUserChannelRequest) ProtoMessage

func (*UpdateUserChannelRequest) ProtoMessage()

func (*UpdateUserChannelRequest) ProtoReflect

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

func (*UpdateUserChannelRequest) Reset

func (x *UpdateUserChannelRequest) Reset()

func (*UpdateUserChannelRequest) String

func (x *UpdateUserChannelRequest) String() string

type UpdateUserChannelScheduleRequest

type UpdateUserChannelScheduleRequest struct {

	// The ID of user channel.
	UserChannelId string `protobuf:"bytes,1,opt,name=user_channel_id,json=userChannelId,proto3" json:"user_channel_id,omitempty"`
	// Indicates whether schedule will be used.
	IsScheduled bool `protobuf:"varint,2,opt,name=is_scheduled,json=isScheduled,proto3" json:"is_scheduled,omitempty"`
	// Schedule for which you want to receive notifications through the user channel.
	// +optional
	Schedule *UserChannelSchedule `protobuf:"bytes,3,opt,name=schedule,proto3" json:"schedule,omitempty"`
	// contains filtered or unexported fields
}
{
   "user_channel_id": "user-ch-28097e8d5d59",
   "is_scheduled": true,
   "schedule": {
       "day_of_week": [
           "MON",
           "TUE",
           "WED",
           "THU",
           "FRI"
       ],
       "end_hour": 9
   },
}

func (*UpdateUserChannelScheduleRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserChannelScheduleRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserChannelScheduleRequest) GetIsScheduled

func (x *UpdateUserChannelScheduleRequest) GetIsScheduled() bool

func (*UpdateUserChannelScheduleRequest) GetSchedule

func (*UpdateUserChannelScheduleRequest) GetUserChannelId

func (x *UpdateUserChannelScheduleRequest) GetUserChannelId() string

func (*UpdateUserChannelScheduleRequest) ProtoMessage

func (*UpdateUserChannelScheduleRequest) ProtoMessage()

func (*UpdateUserChannelScheduleRequest) ProtoReflect

func (*UpdateUserChannelScheduleRequest) Reset

func (*UpdateUserChannelScheduleRequest) String

type UpdateUserChannelSubscriptionRequest

type UpdateUserChannelSubscriptionRequest struct {

	// The ID of user channel.
	UserChannelId string `protobuf:"bytes,1,opt,name=user_channel_id,json=userChannelId,proto3" json:"user_channel_id,omitempty"`
	// Indicates whether subscriptions will be used.
	IsSubscribe bool `protobuf:"varint,2,opt,name=is_subscribe,json=isSubscribe,proto3" json:"is_subscribe,omitempty"`
	// If is_subscribe is set to false, this value is ignored.
	// +optional
	Subscriptions []string `protobuf:"bytes,3,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"`
	// contains filtered or unexported fields
}
{
   "user_channel_id": "user-ch-28097e8d5d59",
   "is_subscribe": true,
   "subscriptions": [
       "monitoring.Alert"
   ],
}

func (*UpdateUserChannelSubscriptionRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserChannelSubscriptionRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserChannelSubscriptionRequest) GetIsSubscribe

func (x *UpdateUserChannelSubscriptionRequest) GetIsSubscribe() bool

func (*UpdateUserChannelSubscriptionRequest) GetSubscriptions

func (x *UpdateUserChannelSubscriptionRequest) GetSubscriptions() []string

func (*UpdateUserChannelSubscriptionRequest) GetUserChannelId

func (x *UpdateUserChannelSubscriptionRequest) GetUserChannelId() string

func (*UpdateUserChannelSubscriptionRequest) ProtoMessage

func (*UpdateUserChannelSubscriptionRequest) ProtoMessage()

func (*UpdateUserChannelSubscriptionRequest) ProtoReflect

func (*UpdateUserChannelSubscriptionRequest) Reset

func (*UpdateUserChannelSubscriptionRequest) String

type UserChannelClient

type UserChannelClient interface {
	// Creates a new UserChannel. A UserChannel is a channel that delivers a Notification to users when the Notification is created. When creating a UserChannel, one Protocol must be selected, and an Notification is dispatched via the selected Protocol.
	Create(ctx context.Context, in *CreateUserChannelRequest, opts ...grpc.CallOption) (*UserChannelInfo, error)
	// Updates a specific UserChannel. A UserChannel that has already been configured cannot be changed. Instead, the data required for dispatching Notifications to a UserChannel can be updated.
	Update(ctx context.Context, in *UpdateUserChannelRequest, opts ...grpc.CallOption) (*UserChannelInfo, error)
	// Sets a schedule for a UserChannel. A schedule defines the time to receive a Notification. When a Notification is created, you can set the day of the week and time you want to receive it. When you set the day of the week, you can receive a notification only on the day of the week you set. If you also set the start time and end time with the day of the week, you can receive a Notification only at the scheduled time on the day of the week you set. If there is no schedule set in a UserChannel, Notifications will be dispatched at all times via the UserChannel.
	SetSchedule(ctx context.Context, in *UpdateUserChannelScheduleRequest, opts ...grpc.CallOption) (*UserChannelInfo, error)
	// Sets a subscription for a UserChannel. A subscription is a topic for channels to subscribe to and get notified about. If a UserChannel has subscriptions, a Notification is dispatched only if the topic of the Notification is the same as the one set in the subscriptions. If there is no subscription in a UserChannel, all Notifications will be dispatched.
	SetSubscription(ctx context.Context, in *UpdateUserChannelSubscriptionRequest, opts ...grpc.CallOption) (*UserChannelInfo, error)
	// Enables a specific UserChannel. If a UserChannel is enabled, the UserChannel can be used and the Notification can be dispatched. Even if a UserChannel is enabled, if the Protocol used in the UserChannel is disabled, the Notification is not dispatched.
	Enable(ctx context.Context, in *UserChannelRequest, opts ...grpc.CallOption) (*UserChannelInfo, error)
	// Disables a specific UserChannel. If a UserChannel is disabled, the Notification is not dispatched, even if it is created.
	Disable(ctx context.Context, in *UserChannelRequest, opts ...grpc.CallOption) (*UserChannelInfo, error)
	// Deletes a specific UserChannel. You must specify the `user_channel_id` of the UserChannel to delete.
	Delete(ctx context.Context, in *UserChannelRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Gets a specific UserChannel. Prints detailed information about the UserChannel, including the Protocol configured and the Notification settings.
	Get(ctx context.Context, in *UserChannelRequest, opts ...grpc.CallOption) (*UserChannelInfo, error)
	// Gets a list of all UserChannels. You can use a query to get a filtered list of UserChannels.
	List(ctx context.Context, in *UserChannelQuery, opts ...grpc.CallOption) (*UserChannelsInfo, error)
	Stat(ctx context.Context, in *UserChannelStatQuery, opts ...grpc.CallOption) (*_struct.Struct, error)
}

UserChannelClient is the client API for UserChannel service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type UserChannelInfo

type UserChannelInfo struct {

	// The ID of user channel.
	UserChannelId string `protobuf:"bytes,1,opt,name=user_channel_id,json=userChannelId,proto3" json:"user_channel_id,omitempty"`
	// The name of user channel
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The state of user channel. ENABLED or DISABLED only.
	State UserChannelInfo_UserChannelState `` /* 131-byte string literal not displayed */
	// The data for using user channel.
	Data *_struct.Struct `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// Indicates whether subscriptions will be used.
	IsSubscribe bool `protobuf:"varint,5,opt,name=is_subscribe,json=isSubscribe,proto3" json:"is_subscribe,omitempty"`
	// The topic list to subscription.
	Subscriptions []string `protobuf:"bytes,6,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"`
	// Indicates whether schedule will be used.
	IsScheduled bool `protobuf:"varint,7,opt,name=is_scheduled,json=isScheduled,proto3" json:"is_scheduled,omitempty"`
	// Schedule for which you want to receive notifications through the user channel.
	Schedule *UserChannelSchedule `protobuf:"bytes,8,opt,name=schedule,proto3" json:"schedule,omitempty"`
	// The tags for user channel.
	Tags *_struct.Struct `protobuf:"bytes,9,opt,name=tags,proto3" json:"tags,omitempty"`
	// The ID of domain.
	DomainId string `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	// The ID of user using the user channel.
	UserId string `protobuf:"bytes,22,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// The ID of protocol set in the user channel.
	ProtocolId string `protobuf:"bytes,23,opt,name=protocol_id,json=protocolId,proto3" json:"protocol_id,omitempty"`
	// The ID of secret encrypted data in the security service
	UserSecretId string `protobuf:"bytes,24,opt,name=user_secret_id,json=userSecretId,proto3" json:"user_secret_id,omitempty"`
	// User channel creation time.
	CreatedAt string `protobuf:"bytes,31,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}
{
   "user_channel_id": "user-ch-123456789012",
   "name": "Email",
   "state": "ENABLED",
   "data": {
       "email": "user1@email.com"
   },
   "protocol_id": "protocol-123456789012",
   "user_id": "user1@email.com",
   "domain_id": "domain-123456789012",
   "created_at": "2022-01-01T08:28:49.108Z"
}

func (*UserChannelInfo) Descriptor deprecated

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

Deprecated: Use UserChannelInfo.ProtoReflect.Descriptor instead.

func (*UserChannelInfo) GetCreatedAt

func (x *UserChannelInfo) GetCreatedAt() string

func (*UserChannelInfo) GetData

func (x *UserChannelInfo) GetData() *_struct.Struct

func (*UserChannelInfo) GetDomainId

func (x *UserChannelInfo) GetDomainId() string

func (*UserChannelInfo) GetIsScheduled

func (x *UserChannelInfo) GetIsScheduled() bool

func (*UserChannelInfo) GetIsSubscribe

func (x *UserChannelInfo) GetIsSubscribe() bool

func (*UserChannelInfo) GetName

func (x *UserChannelInfo) GetName() string

func (*UserChannelInfo) GetProtocolId

func (x *UserChannelInfo) GetProtocolId() string

func (*UserChannelInfo) GetSchedule

func (x *UserChannelInfo) GetSchedule() *UserChannelSchedule

func (*UserChannelInfo) GetState

func (*UserChannelInfo) GetSubscriptions

func (x *UserChannelInfo) GetSubscriptions() []string

func (*UserChannelInfo) GetTags

func (x *UserChannelInfo) GetTags() *_struct.Struct

func (*UserChannelInfo) GetUserChannelId

func (x *UserChannelInfo) GetUserChannelId() string

func (*UserChannelInfo) GetUserId

func (x *UserChannelInfo) GetUserId() string

func (*UserChannelInfo) GetUserSecretId

func (x *UserChannelInfo) GetUserSecretId() string

func (*UserChannelInfo) ProtoMessage

func (*UserChannelInfo) ProtoMessage()

func (*UserChannelInfo) ProtoReflect

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

func (*UserChannelInfo) Reset

func (x *UserChannelInfo) Reset()

func (*UserChannelInfo) String

func (x *UserChannelInfo) String() string

type UserChannelInfo_UserChannelState

type UserChannelInfo_UserChannelState int32
const (
	UserChannelInfo_NONE     UserChannelInfo_UserChannelState = 0
	UserChannelInfo_ENABLED  UserChannelInfo_UserChannelState = 1
	UserChannelInfo_DISABLED UserChannelInfo_UserChannelState = 2
)

func (UserChannelInfo_UserChannelState) Descriptor

func (UserChannelInfo_UserChannelState) Enum

func (UserChannelInfo_UserChannelState) EnumDescriptor deprecated

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

Deprecated: Use UserChannelInfo_UserChannelState.Descriptor instead.

func (UserChannelInfo_UserChannelState) Number

func (UserChannelInfo_UserChannelState) String

func (UserChannelInfo_UserChannelState) Type

type UserChannelQuery

type UserChannelQuery struct {

	// Query format provided by SpaceONE. Please check the link for more information.
	// +optional
	Query *v2.Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// The ID of user channel.
	// +optional
	UserChannelId string `protobuf:"bytes,2,opt,name=user_channel_id,json=userChannelId,proto3" json:"user_channel_id,omitempty"`
	// The name of user channel. It can have a maximum of 255 characters.
	// +optional
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// The state of user channel. ENABLED or DISABLED only.
	// +optional
	State UserChannelQuery_UserChannelState `` /* 132-byte string literal not displayed */
	// Indicates whether subscriptions will be used.
	// +optional
	IsSubscribe bool `protobuf:"varint,5,opt,name=is_subscribe,json=isSubscribe,proto3" json:"is_subscribe,omitempty"`
	// Indicates whether schedule will be used.
	// +optional
	IsScheduled bool `protobuf:"varint,6,opt,name=is_scheduled,json=isScheduled,proto3" json:"is_scheduled,omitempty"`
	// The ID of protocol set in the user channel.
	// +optional
	ProtocolId string `protobuf:"bytes,21,opt,name=protocol_id,json=protocolId,proto3" json:"protocol_id,omitempty"`
	// The ID of secret encrypted data in the security service
	// +optional
	UserSecretId string `protobuf:"bytes,22,opt,name=user_secret_id,json=userSecretId,proto3" json:"user_secret_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "query": {}
}

func (*UserChannelQuery) Descriptor deprecated

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

Deprecated: Use UserChannelQuery.ProtoReflect.Descriptor instead.

func (*UserChannelQuery) GetIsScheduled

func (x *UserChannelQuery) GetIsScheduled() bool

func (*UserChannelQuery) GetIsSubscribe

func (x *UserChannelQuery) GetIsSubscribe() bool

func (*UserChannelQuery) GetName

func (x *UserChannelQuery) GetName() string

func (*UserChannelQuery) GetProtocolId

func (x *UserChannelQuery) GetProtocolId() string

func (*UserChannelQuery) GetQuery

func (x *UserChannelQuery) GetQuery() *v2.Query

func (*UserChannelQuery) GetState

func (*UserChannelQuery) GetUserChannelId

func (x *UserChannelQuery) GetUserChannelId() string

func (*UserChannelQuery) GetUserSecretId

func (x *UserChannelQuery) GetUserSecretId() string

func (*UserChannelQuery) ProtoMessage

func (*UserChannelQuery) ProtoMessage()

func (*UserChannelQuery) ProtoReflect

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

func (*UserChannelQuery) Reset

func (x *UserChannelQuery) Reset()

func (*UserChannelQuery) String

func (x *UserChannelQuery) String() string

type UserChannelQuery_UserChannelState

type UserChannelQuery_UserChannelState int32
const (
	UserChannelQuery_NONE     UserChannelQuery_UserChannelState = 0
	UserChannelQuery_ENABLED  UserChannelQuery_UserChannelState = 1
	UserChannelQuery_DISABLED UserChannelQuery_UserChannelState = 2
)

func (UserChannelQuery_UserChannelState) Descriptor

func (UserChannelQuery_UserChannelState) Enum

func (UserChannelQuery_UserChannelState) EnumDescriptor deprecated

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

Deprecated: Use UserChannelQuery_UserChannelState.Descriptor instead.

func (UserChannelQuery_UserChannelState) Number

func (UserChannelQuery_UserChannelState) String

func (UserChannelQuery_UserChannelState) Type

type UserChannelRequest

type UserChannelRequest struct {

	// The ID of user channel.
	UserChannelId string `protobuf:"bytes,1,opt,name=user_channel_id,json=userChannelId,proto3" json:"user_channel_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "user_channel_id": "user-ch-123456789012"
}

func (*UserChannelRequest) Descriptor deprecated

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

Deprecated: Use UserChannelRequest.ProtoReflect.Descriptor instead.

func (*UserChannelRequest) GetUserChannelId

func (x *UserChannelRequest) GetUserChannelId() string

func (*UserChannelRequest) ProtoMessage

func (*UserChannelRequest) ProtoMessage()

func (*UserChannelRequest) ProtoReflect

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

func (*UserChannelRequest) Reset

func (x *UserChannelRequest) Reset()

func (*UserChannelRequest) String

func (x *UserChannelRequest) String() string

type UserChannelSchedule

type UserChannelSchedule struct {

	// Day of the week to be notified.
	// As a list type, only types that can be specified from MON to SUN can be set.
	DayOfWeek []UserChannelSchedule_DayOfWeek `` /* 162-byte string literal not displayed */
	// Start time to receive notifications.
	// Only integer type can be set, and 0 to 23 can be.
	StartHour int32 `protobuf:"varint,2,opt,name=start_hour,json=startHour,proto3" json:"start_hour,omitempty"`
	// End time to receive notifications.
	// Only integer type can be set, and 1 to 24 can be.
	EndHour int32 `protobuf:"varint,3,opt,name=end_hour,json=endHour,proto3" json:"end_hour,omitempty"`
	// contains filtered or unexported fields
}

func (*UserChannelSchedule) Descriptor deprecated

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

Deprecated: Use UserChannelSchedule.ProtoReflect.Descriptor instead.

func (*UserChannelSchedule) GetDayOfWeek

func (*UserChannelSchedule) GetEndHour

func (x *UserChannelSchedule) GetEndHour() int32

func (*UserChannelSchedule) GetStartHour

func (x *UserChannelSchedule) GetStartHour() int32

func (*UserChannelSchedule) ProtoMessage

func (*UserChannelSchedule) ProtoMessage()

func (*UserChannelSchedule) ProtoReflect

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

func (*UserChannelSchedule) Reset

func (x *UserChannelSchedule) Reset()

func (*UserChannelSchedule) String

func (x *UserChannelSchedule) String() string

type UserChannelSchedule_DayOfWeek

type UserChannelSchedule_DayOfWeek int32
const (
	UserChannelSchedule_NONE UserChannelSchedule_DayOfWeek = 0
	UserChannelSchedule_MON  UserChannelSchedule_DayOfWeek = 1
	UserChannelSchedule_TUE  UserChannelSchedule_DayOfWeek = 2
	UserChannelSchedule_WED  UserChannelSchedule_DayOfWeek = 3
	UserChannelSchedule_THU  UserChannelSchedule_DayOfWeek = 4
	UserChannelSchedule_FRI  UserChannelSchedule_DayOfWeek = 5
	UserChannelSchedule_SAT  UserChannelSchedule_DayOfWeek = 6
	UserChannelSchedule_SUN  UserChannelSchedule_DayOfWeek = 7
)

func (UserChannelSchedule_DayOfWeek) Descriptor

func (UserChannelSchedule_DayOfWeek) Enum

func (UserChannelSchedule_DayOfWeek) EnumDescriptor deprecated

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

Deprecated: Use UserChannelSchedule_DayOfWeek.Descriptor instead.

func (UserChannelSchedule_DayOfWeek) Number

func (UserChannelSchedule_DayOfWeek) String

func (UserChannelSchedule_DayOfWeek) Type

type UserChannelServer

type UserChannelServer interface {
	// Creates a new UserChannel. A UserChannel is a channel that delivers a Notification to users when the Notification is created. When creating a UserChannel, one Protocol must be selected, and an Notification is dispatched via the selected Protocol.
	Create(context.Context, *CreateUserChannelRequest) (*UserChannelInfo, error)
	// Updates a specific UserChannel. A UserChannel that has already been configured cannot be changed. Instead, the data required for dispatching Notifications to a UserChannel can be updated.
	Update(context.Context, *UpdateUserChannelRequest) (*UserChannelInfo, error)
	// Sets a schedule for a UserChannel. A schedule defines the time to receive a Notification. When a Notification is created, you can set the day of the week and time you want to receive it. When you set the day of the week, you can receive a notification only on the day of the week you set. If you also set the start time and end time with the day of the week, you can receive a Notification only at the scheduled time on the day of the week you set. If there is no schedule set in a UserChannel, Notifications will be dispatched at all times via the UserChannel.
	SetSchedule(context.Context, *UpdateUserChannelScheduleRequest) (*UserChannelInfo, error)
	// Sets a subscription for a UserChannel. A subscription is a topic for channels to subscribe to and get notified about. If a UserChannel has subscriptions, a Notification is dispatched only if the topic of the Notification is the same as the one set in the subscriptions. If there is no subscription in a UserChannel, all Notifications will be dispatched.
	SetSubscription(context.Context, *UpdateUserChannelSubscriptionRequest) (*UserChannelInfo, error)
	// Enables a specific UserChannel. If a UserChannel is enabled, the UserChannel can be used and the Notification can be dispatched. Even if a UserChannel is enabled, if the Protocol used in the UserChannel is disabled, the Notification is not dispatched.
	Enable(context.Context, *UserChannelRequest) (*UserChannelInfo, error)
	// Disables a specific UserChannel. If a UserChannel is disabled, the Notification is not dispatched, even if it is created.
	Disable(context.Context, *UserChannelRequest) (*UserChannelInfo, error)
	// Deletes a specific UserChannel. You must specify the `user_channel_id` of the UserChannel to delete.
	Delete(context.Context, *UserChannelRequest) (*empty.Empty, error)
	// Gets a specific UserChannel. Prints detailed information about the UserChannel, including the Protocol configured and the Notification settings.
	Get(context.Context, *UserChannelRequest) (*UserChannelInfo, error)
	// Gets a list of all UserChannels. You can use a query to get a filtered list of UserChannels.
	List(context.Context, *UserChannelQuery) (*UserChannelsInfo, error)
	Stat(context.Context, *UserChannelStatQuery) (*_struct.Struct, error)
	// contains filtered or unexported methods
}

UserChannelServer is the server API for UserChannel service. All implementations must embed UnimplementedUserChannelServer for forward compatibility

type UserChannelStatQuery

type UserChannelStatQuery struct {

	// Statistics Query format provided by SpaceONE. Please check the link for more information.
	Query *v2.StatisticsQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*UserChannelStatQuery) Descriptor deprecated

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

Deprecated: Use UserChannelStatQuery.ProtoReflect.Descriptor instead.

func (*UserChannelStatQuery) GetQuery

func (x *UserChannelStatQuery) GetQuery() *v2.StatisticsQuery

func (*UserChannelStatQuery) ProtoMessage

func (*UserChannelStatQuery) ProtoMessage()

func (*UserChannelStatQuery) ProtoReflect

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

func (*UserChannelStatQuery) Reset

func (x *UserChannelStatQuery) Reset()

func (*UserChannelStatQuery) String

func (x *UserChannelStatQuery) String() string

type UserChannelsInfo

type UserChannelsInfo struct {

	// List of queried user channels.
	Results []*UserChannelInfo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// Total counts of queried user channels.
	TotalCount int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}
{
   "results": [
       {
           "user_channel_id": "user-ch-123456789012",
           "name": "Email",
           "state": "ENABLED",
           "data": {
               "email": "user1@email.com"
           },
           "protocol_id": "protocol-123456789012",
           "user_id": "user1@email.com",
           "domain_id": "domain-123456789012",
           "created_at": "2022-01-01T08:28:49.108Z"
       },
       {
           "user_channel_id": "user-ch-98765432109",
           "name": "Email",
           "state": "ENABLED",
           "data": {
               "email": "user2@email.com"
           },
           "is_scheduled": true,
           "schedule": {
               "day_of_week": [
                   "MON",
                   "TUE",
                   "WED",
                   "THU",
                   "FRI"
               ],
               "start_hour": 3,
               "end_hour": 23
           },
           "protocol_id": "protocol-123456789012",
           "user_id": "user2@email.com",
           "domain_id": "domain-123456789012",
           "created_at": "2022-01-01T06:45:57.260Z"
       }
   ],
   "total_count": 2
}

func (*UserChannelsInfo) Descriptor deprecated

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

Deprecated: Use UserChannelsInfo.ProtoReflect.Descriptor instead.

func (*UserChannelsInfo) GetResults

func (x *UserChannelsInfo) GetResults() []*UserChannelInfo

func (*UserChannelsInfo) GetTotalCount

func (x *UserChannelsInfo) GetTotalCount() int32

func (*UserChannelsInfo) ProtoMessage

func (*UserChannelsInfo) ProtoMessage()

func (*UserChannelsInfo) ProtoReflect

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

func (*UserChannelsInfo) Reset

func (x *UserChannelsInfo) Reset()

func (*UserChannelsInfo) String

func (x *UserChannelsInfo) String() string

Jump to

Keyboard shortcuts

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