admin

package
v0.57.4 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Overview

Package admin is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var Admin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "blueapi.admin.v1.Admin",
	HandlerType: (*AdminServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAccountGroup",
			Handler:    _Admin_GetAccountGroup_Handler,
		},
		{
			MethodName: "GetDefaultBillingInfoTemplateUrl",
			Handler:    _Admin_GetDefaultBillingInfoTemplateUrl_Handler,
		},
		{
			MethodName: "GetDefaultBillingInfo",
			Handler:    _Admin_GetDefaultBillingInfo_Handler,
		},
		{
			MethodName: "CreateDefaultBillingInfoRole",
			Handler:    _Admin_CreateDefaultBillingInfoRole_Handler,
		},
		{
			MethodName: "UpdateDefaultBillingInfoRole",
			Handler:    _Admin_UpdateDefaultBillingInfoRole_Handler,
		},
		{
			MethodName: "DeleteDefaultBillingInfoRole",
			Handler:    _Admin_DeleteDefaultBillingInfoRole_Handler,
		},
		{
			MethodName: "GetNotificationSettings",
			Handler:    _Admin_GetNotificationSettings_Handler,
		},
		{
			MethodName: "SaveNotificationSettings",
			Handler:    _Admin_SaveNotificationSettings_Handler,
		},
		{
			MethodName: "ListNotificationChannels",
			Handler:    _Admin_ListNotificationChannels_Handler,
		},
		{
			MethodName: "GetNotificationChannel",
			Handler:    _Admin_GetNotificationChannel_Handler,
		},
		{
			MethodName: "CreateNotificationChannel",
			Handler:    _Admin_CreateNotificationChannel_Handler,
		},
		{
			MethodName: "UpdateNotificationChannel",
			Handler:    _Admin_UpdateNotificationChannel_Handler,
		},
		{
			MethodName: "DeleteNotificationChannel",
			Handler:    _Admin_DeleteNotificationChannel_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ListAccountGroups",
			Handler:       _Admin_ListAccountGroups_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ListDefaultBillingInfo",
			Handler:       _Admin_ListDefaultBillingInfo_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "admin/v1/admin.proto",
}

Admin_ServiceDesc is the grpc.ServiceDesc for Admin 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 File_admin_v1_admin_proto protoreflect.FileDescriptor

Functions

func RegisterAdminHandler

func RegisterAdminHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAdminHandler registers the http handlers for service Admin to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAdminHandlerClient

func RegisterAdminHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AdminClient) error

RegisterAdminHandlerClient registers the http handlers for service Admin to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AdminClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AdminClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AdminClient" to call the correct interceptors.

func RegisterAdminHandlerFromEndpoint

func RegisterAdminHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAdminHandlerFromEndpoint is same as RegisterAdminHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAdminHandlerServer

func RegisterAdminHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AdminServer) error

RegisterAdminHandlerServer registers the http handlers for service Admin to "mux". UnaryRPC :call AdminServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAdminHandlerFromEndpoint instead.

func RegisterAdminServer

func RegisterAdminServer(s grpc.ServiceRegistrar, srv AdminServer)

Types

type AdminClient

type AdminClient interface {
	// Lists all account groups.
	ListAccountGroups(ctx context.Context, in *ListAccountGroupsRequest, opts ...grpc.CallOption) (Admin_ListAccountGroupsClient, error)
	// Gets an account group.
	GetAccountGroup(ctx context.Context, in *GetAccountGroupRequest, opts ...grpc.CallOption) (*GetAccountGroupResponse, error)
	// Gets a CloudFormation launch URL for enabling cross-account access to your account's billing information.
	// Upon successful deployment, you need to validate the access by calling 'POST /admin/v1/aws/xacct/default'.
	GetDefaultBillingInfoTemplateUrl(ctx context.Context, in *GetDefaultBillingInfoTemplateUrlRequest, opts ...grpc.CallOption) (*GetDefaultBillingInfoTemplateUrlResponse, error)
	// Lists the default cross-account role(s) attached to accounts under caller.
	ListDefaultBillingInfo(ctx context.Context, in *ListDefaultBillingInfoRequest, opts ...grpc.CallOption) (Admin_ListDefaultBillingInfoClient, error)
	// Gets the current role attached to input account.
	GetDefaultBillingInfo(ctx context.Context, in *GetDefaultBillingInfoRequest, opts ...grpc.CallOption) (*DefaultBillingInfo, error)
	// Starts validation of a cross-account access stack deployment. If successful,
	// the new IAM role will be registered to the target account.
	CreateDefaultBillingInfoRole(ctx context.Context, in *CreateDefaultBillingInfoRoleRequest, opts ...grpc.CallOption) (*DefaultBillingInfo, error)
	// Starts an update to an existing CloudFormation for template changes, if any.
	UpdateDefaultBillingInfoRole(ctx context.Context, in *UpdateDefaultBillingInfoRoleRequest, opts ...grpc.CallOption) (*api.Operation, error)
	// Deletes the current role attached to this target account. This does not delete the
	// CloudFormation deployment in your account.
	DeleteDefaultBillingInfoRole(ctx context.Context, in *DeleteDefaultBillingInfoRoleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// WORK-IN-PROGRESS: Get notification settings for login user's organization or group.
	GetNotificationSettings(ctx context.Context, in *GetNotificationSettingsRequest, opts ...grpc.CallOption) (*api.NotificationSettings, error)
	// WORK-IN-PROGRESS: Creates or updates notification settings for login user's organization or group.
	SaveNotificationSettings(ctx context.Context, in *SaveNotificationSettingsRequest, opts ...grpc.CallOption) (*api.NotificationSettings, error)
	// WORK-IN-PROGRESS: Lists all notification channels for login user's organization or group.
	ListNotificationChannels(ctx context.Context, in *ListNotificationChannelsRequest, opts ...grpc.CallOption) (*ListNotificationChannelsResponse, error)
	// WORK-IN-PROGRESS: Gets notification channel for login user's organization or group.
	GetNotificationChannel(ctx context.Context, in *GetNotificationChannelRequest, opts ...grpc.CallOption) (*api.NotificationChannel, error)
	// WORK-IN-PROGRESS: Creates notification settings for login user's organization or group.
	CreateNotificationChannel(ctx context.Context, in *CreateNotificationChannelRequest, opts ...grpc.CallOption) (*api.NotificationChannel, error)
	// WORK-IN-PROGRESS: Updates notification settings for login user's organization or group.
	UpdateNotificationChannel(ctx context.Context, in *UpdateNotificationChannelRequest, opts ...grpc.CallOption) (*api.NotificationChannel, error)
	// WORK-IN-PROGRESS: Deletes notification settings for login user's organization or group.
	DeleteNotificationChannel(ctx context.Context, in *DeleteNotificationChannelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

AdminClient is the client API for Admin 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 NewAdminClient

func NewAdminClient(cc grpc.ClientConnInterface) AdminClient

type AdminServer

type AdminServer interface {
	// Lists all account groups.
	ListAccountGroups(*ListAccountGroupsRequest, Admin_ListAccountGroupsServer) error
	// Gets an account group.
	GetAccountGroup(context.Context, *GetAccountGroupRequest) (*GetAccountGroupResponse, error)
	// Gets a CloudFormation launch URL for enabling cross-account access to your account's billing information.
	// Upon successful deployment, you need to validate the access by calling 'POST /admin/v1/aws/xacct/default'.
	GetDefaultBillingInfoTemplateUrl(context.Context, *GetDefaultBillingInfoTemplateUrlRequest) (*GetDefaultBillingInfoTemplateUrlResponse, error)
	// Lists the default cross-account role(s) attached to accounts under caller.
	ListDefaultBillingInfo(*ListDefaultBillingInfoRequest, Admin_ListDefaultBillingInfoServer) error
	// Gets the current role attached to input account.
	GetDefaultBillingInfo(context.Context, *GetDefaultBillingInfoRequest) (*DefaultBillingInfo, error)
	// Starts validation of a cross-account access stack deployment. If successful,
	// the new IAM role will be registered to the target account.
	CreateDefaultBillingInfoRole(context.Context, *CreateDefaultBillingInfoRoleRequest) (*DefaultBillingInfo, error)
	// Starts an update to an existing CloudFormation for template changes, if any.
	UpdateDefaultBillingInfoRole(context.Context, *UpdateDefaultBillingInfoRoleRequest) (*api.Operation, error)
	// Deletes the current role attached to this target account. This does not delete the
	// CloudFormation deployment in your account.
	DeleteDefaultBillingInfoRole(context.Context, *DeleteDefaultBillingInfoRoleRequest) (*emptypb.Empty, error)
	// WORK-IN-PROGRESS: Get notification settings for login user's organization or group.
	GetNotificationSettings(context.Context, *GetNotificationSettingsRequest) (*api.NotificationSettings, error)
	// WORK-IN-PROGRESS: Creates or updates notification settings for login user's organization or group.
	SaveNotificationSettings(context.Context, *SaveNotificationSettingsRequest) (*api.NotificationSettings, error)
	// WORK-IN-PROGRESS: Lists all notification channels for login user's organization or group.
	ListNotificationChannels(context.Context, *ListNotificationChannelsRequest) (*ListNotificationChannelsResponse, error)
	// WORK-IN-PROGRESS: Gets notification channel for login user's organization or group.
	GetNotificationChannel(context.Context, *GetNotificationChannelRequest) (*api.NotificationChannel, error)
	// WORK-IN-PROGRESS: Creates notification settings for login user's organization or group.
	CreateNotificationChannel(context.Context, *CreateNotificationChannelRequest) (*api.NotificationChannel, error)
	// WORK-IN-PROGRESS: Updates notification settings for login user's organization or group.
	UpdateNotificationChannel(context.Context, *UpdateNotificationChannelRequest) (*api.NotificationChannel, error)
	// WORK-IN-PROGRESS: Deletes notification settings for login user's organization or group.
	DeleteNotificationChannel(context.Context, *DeleteNotificationChannelRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

AdminServer is the server API for Admin service. All implementations must embed UnimplementedAdminServer for forward compatibility

type Admin_ListAccountGroupsClient

type Admin_ListAccountGroupsClient interface {
	Recv() (*ListAccountGroupsResponse, error)
	grpc.ClientStream
}

type Admin_ListAccountGroupsServer

type Admin_ListAccountGroupsServer interface {
	Send(*ListAccountGroupsResponse) error
	grpc.ServerStream
}

type Admin_ListDefaultBillingInfoClient added in v0.55.0

type Admin_ListDefaultBillingInfoClient interface {
	Recv() (*DefaultBillingInfo, error)
	grpc.ClientStream
}

type Admin_ListDefaultBillingInfoServer added in v0.55.0

type Admin_ListDefaultBillingInfoServer interface {
	Send(*DefaultBillingInfo) error
	grpc.ServerStream
}

type ClientOptions

type ClientOptions struct {
	Conn *conn.GrpcClientConn
}

ClientOptions represents the optional options to NewClient.

type CreateDefaultBillingInfoRoleRequest added in v0.53.0

type CreateDefaultBillingInfoRoleRequest struct {

	// Required. The target AWS account to validate.
	Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Admin.CreateDefaultBillingInfoRole rpc.

func (*CreateDefaultBillingInfoRoleRequest) Descriptor deprecated added in v0.53.0

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

Deprecated: Use CreateDefaultBillingInfoRoleRequest.ProtoReflect.Descriptor instead.

func (*CreateDefaultBillingInfoRoleRequest) GetTarget added in v0.53.0

func (*CreateDefaultBillingInfoRoleRequest) ProtoMessage added in v0.53.0

func (*CreateDefaultBillingInfoRoleRequest) ProtoMessage()

func (*CreateDefaultBillingInfoRoleRequest) ProtoReflect added in v0.53.0

func (*CreateDefaultBillingInfoRoleRequest) Reset added in v0.53.0

func (*CreateDefaultBillingInfoRoleRequest) String added in v0.53.0

type CreateNotificationChannelRequest added in v0.56.1

type CreateNotificationChannelRequest struct {

	// Required. Name of Notification Channel
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required.
	// Valid values: "email", "slack", "msteams"
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// Required if type="email"
	Email *api.EmailChannel `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	// Required if type="slack"
	Slack *api.SlackChannel `protobuf:"bytes,4,opt,name=slack,proto3" json:"slack,omitempty"`
	// Required if type="msteams"
	Msteams *api.MSTeamsChannel `protobuf:"bytes,5,opt,name=msteams,proto3" json:"msteams,omitempty"`
	// contains filtered or unexported fields
}

Request message for Admin.CreateNotificationChannel rpc

func (*CreateNotificationChannelRequest) Descriptor deprecated added in v0.56.1

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

Deprecated: Use CreateNotificationChannelRequest.ProtoReflect.Descriptor instead.

func (*CreateNotificationChannelRequest) GetEmail added in v0.56.1

func (*CreateNotificationChannelRequest) GetMsteams added in v0.56.1

func (*CreateNotificationChannelRequest) GetName added in v0.56.1

func (*CreateNotificationChannelRequest) GetSlack added in v0.56.1

func (*CreateNotificationChannelRequest) GetType added in v0.56.1

func (*CreateNotificationChannelRequest) ProtoMessage added in v0.56.1

func (*CreateNotificationChannelRequest) ProtoMessage()

func (*CreateNotificationChannelRequest) ProtoReflect added in v0.56.1

func (*CreateNotificationChannelRequest) Reset added in v0.56.1

func (*CreateNotificationChannelRequest) String added in v0.56.1

type DefaultBillingInfo added in v0.53.1

type DefaultBillingInfo struct {

	// The queried target account.
	Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	// The role ARN that provides the cross-account access permissions.
	RoleArn string `protobuf:"bytes,2,opt,name=roleArn,proto3" json:"roleArn,omitempty"`
	// The id of the CloudFormation stack deployed in the target account.
	StackId string `protobuf:"bytes,3,opt,name=stackId,proto3" json:"stackId,omitempty"`
	// The region where the stack is deployed.
	StackRegion string `protobuf:"bytes,4,opt,name=stackRegion,proto3" json:"stackRegion,omitempty"`
	// The latest template used to deploy the stack.
	TemplateUrl string `protobuf:"bytes,5,opt,name=templateUrl,proto3" json:"templateUrl,omitempty"`
	// This can be 'latest', 'outdated', or 'invalid'.
	Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
	// The last updated timestamp, RFC3339 UTC.
	LastUpdated string `protobuf:"bytes,7,opt,name=lastUpdated,proto3" json:"lastUpdated,omitempty"`
	// contains filtered or unexported fields
}

Response message for the Admin.GetDefaultBillingInfo, Admin.CreateDefaultBillingInfoRole rpc.

func (*DefaultBillingInfo) Descriptor deprecated added in v0.53.1

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

Deprecated: Use DefaultBillingInfo.ProtoReflect.Descriptor instead.

func (*DefaultBillingInfo) GetLastUpdated added in v0.53.4

func (x *DefaultBillingInfo) GetLastUpdated() string

func (*DefaultBillingInfo) GetRoleArn added in v0.53.1

func (x *DefaultBillingInfo) GetRoleArn() string

func (*DefaultBillingInfo) GetStackId added in v0.53.1

func (x *DefaultBillingInfo) GetStackId() string

func (*DefaultBillingInfo) GetStackRegion added in v0.53.2

func (x *DefaultBillingInfo) GetStackRegion() string

func (*DefaultBillingInfo) GetStatus added in v0.53.3

func (x *DefaultBillingInfo) GetStatus() string

func (*DefaultBillingInfo) GetTarget added in v0.53.1

func (x *DefaultBillingInfo) GetTarget() string

func (*DefaultBillingInfo) GetTemplateUrl added in v0.53.1

func (x *DefaultBillingInfo) GetTemplateUrl() string

func (*DefaultBillingInfo) ProtoMessage added in v0.53.1

func (*DefaultBillingInfo) ProtoMessage()

func (*DefaultBillingInfo) ProtoReflect added in v0.53.1

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

func (*DefaultBillingInfo) Reset added in v0.53.1

func (x *DefaultBillingInfo) Reset()

func (*DefaultBillingInfo) String added in v0.53.1

func (x *DefaultBillingInfo) String() string

type DeleteDefaultBillingInfoRoleRequest added in v0.53.0

type DeleteDefaultBillingInfoRoleRequest struct {

	// Required. The target AWS account to delete.
	Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Admin.DeleteDefaultBillingInfoRole rpc.

func (*DeleteDefaultBillingInfoRoleRequest) Descriptor deprecated added in v0.53.0

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

Deprecated: Use DeleteDefaultBillingInfoRoleRequest.ProtoReflect.Descriptor instead.

func (*DeleteDefaultBillingInfoRoleRequest) GetTarget added in v0.53.0

func (*DeleteDefaultBillingInfoRoleRequest) ProtoMessage added in v0.53.0

func (*DeleteDefaultBillingInfoRoleRequest) ProtoMessage()

func (*DeleteDefaultBillingInfoRoleRequest) ProtoReflect added in v0.53.0

func (*DeleteDefaultBillingInfoRoleRequest) Reset added in v0.53.0

func (*DeleteDefaultBillingInfoRoleRequest) String added in v0.53.0

type DeleteNotificationChannelRequest added in v0.56.1

type DeleteNotificationChannelRequest struct {

	//Required. ID of Notification Channel to delete
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Request message for Admin.DeleteNotificationChannel rpc

func (*DeleteNotificationChannelRequest) Descriptor deprecated added in v0.56.1

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

Deprecated: Use DeleteNotificationChannelRequest.ProtoReflect.Descriptor instead.

func (*DeleteNotificationChannelRequest) GetId added in v0.56.1

func (*DeleteNotificationChannelRequest) ProtoMessage added in v0.56.1

func (*DeleteNotificationChannelRequest) ProtoMessage()

func (*DeleteNotificationChannelRequest) ProtoReflect added in v0.56.1

func (*DeleteNotificationChannelRequest) Reset added in v0.56.1

func (*DeleteNotificationChannelRequest) String added in v0.56.1

type GetAccountGroupRequest added in v0.36.3

type GetAccountGroupRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Admin.GetAccountGroup rpc.

func (*GetAccountGroupRequest) Descriptor deprecated added in v0.36.3

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

Deprecated: Use GetAccountGroupRequest.ProtoReflect.Descriptor instead.

func (*GetAccountGroupRequest) GetId added in v0.36.3

func (x *GetAccountGroupRequest) GetId() string

func (*GetAccountGroupRequest) ProtoMessage added in v0.36.3

func (*GetAccountGroupRequest) ProtoMessage()

func (*GetAccountGroupRequest) ProtoReflect added in v0.36.3

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

func (*GetAccountGroupRequest) Reset added in v0.36.3

func (x *GetAccountGroupRequest) Reset()

func (*GetAccountGroupRequest) String added in v0.36.3

func (x *GetAccountGroupRequest) String() string

type GetAccountGroupResponse added in v0.36.3

type GetAccountGroupResponse struct {
	AcctGroup *api.AccountGroup `protobuf:"bytes,1,opt,name=acctGroup,proto3" json:"acctGroup,omitempty"`
	// contains filtered or unexported fields
}

Response message for the Admin.GetAccountGroup rpc.

func (*GetAccountGroupResponse) Descriptor deprecated added in v0.36.3

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

Deprecated: Use GetAccountGroupResponse.ProtoReflect.Descriptor instead.

func (*GetAccountGroupResponse) GetAcctGroup added in v0.36.3

func (x *GetAccountGroupResponse) GetAcctGroup() *api.AccountGroup

func (*GetAccountGroupResponse) ProtoMessage added in v0.36.3

func (*GetAccountGroupResponse) ProtoMessage()

func (*GetAccountGroupResponse) ProtoReflect added in v0.36.3

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

func (*GetAccountGroupResponse) Reset added in v0.36.3

func (x *GetAccountGroupResponse) Reset()

func (*GetAccountGroupResponse) String added in v0.36.3

func (x *GetAccountGroupResponse) String() string

type GetDefaultBillingInfoRequest added in v0.53.0

type GetDefaultBillingInfoRequest struct {

	// Required. The target AWS account to query.
	Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Admin.GetDefaultBillingInfo rpc.

func (*GetDefaultBillingInfoRequest) Descriptor deprecated added in v0.53.0

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

Deprecated: Use GetDefaultBillingInfoRequest.ProtoReflect.Descriptor instead.

func (*GetDefaultBillingInfoRequest) GetTarget added in v0.53.0

func (x *GetDefaultBillingInfoRequest) GetTarget() string

func (*GetDefaultBillingInfoRequest) ProtoMessage added in v0.53.0

func (*GetDefaultBillingInfoRequest) ProtoMessage()

func (*GetDefaultBillingInfoRequest) ProtoReflect added in v0.53.0

func (*GetDefaultBillingInfoRequest) Reset added in v0.53.0

func (x *GetDefaultBillingInfoRequest) Reset()

func (*GetDefaultBillingInfoRequest) String added in v0.53.0

type GetDefaultBillingInfoTemplateUrlRequest added in v0.52.0

type GetDefaultBillingInfoTemplateUrlRequest struct {

	// Optional. Valid values are `default`, `s3only`, and `apionly`. Set to `default` if empty.
	//
	// `default` - Template for setting up both CUR export and read-only access to cost information.
	//
	// `apionly` - Template for setting up ready-only access to cost information. Use if you already
	// exported your CUR to Alphaus through other means (i.e. manual setup).
	//
	// `s3only` - A helper template for creating an S3 bucket to be used for CUR export.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Optional. Set to the desired target region code. Defaults to 'us-east-1' (N. Virginia).
	// You can still change the final target region in the CloudFormation console before
	// the stack creation.
	Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Admin.GetDefaultBillingInfoTemplateUrl rpc.

func (*GetDefaultBillingInfoTemplateUrlRequest) Descriptor deprecated added in v0.52.0

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

Deprecated: Use GetDefaultBillingInfoTemplateUrlRequest.ProtoReflect.Descriptor instead.

func (*GetDefaultBillingInfoTemplateUrlRequest) GetRegion added in v0.52.0

func (*GetDefaultBillingInfoTemplateUrlRequest) GetType added in v0.57.4

func (*GetDefaultBillingInfoTemplateUrlRequest) ProtoMessage added in v0.52.0

func (*GetDefaultBillingInfoTemplateUrlRequest) ProtoReflect added in v0.52.0

func (*GetDefaultBillingInfoTemplateUrlRequest) Reset added in v0.52.0

func (*GetDefaultBillingInfoTemplateUrlRequest) String added in v0.52.0

type GetDefaultBillingInfoTemplateUrlResponse added in v0.52.0

type GetDefaultBillingInfoTemplateUrlResponse struct {

	// The CloudFormation launch url. Open it in your browser.
	LaunchUrl string `protobuf:"bytes,1,opt,name=launchUrl,proto3" json:"launchUrl,omitempty"`
	// The latest CloudFormation template. The version is included in the filename.
	TemplateUrl string `protobuf:"bytes,2,opt,name=templateUrl,proto3" json:"templateUrl,omitempty"`
	// The default stack name used. Can be modified.
	StackName string `protobuf:"bytes,3,opt,name=stackName,proto3" json:"stackName,omitempty"`
	// The AWS account that will receive the access. Do not change.
	Principal string `protobuf:"bytes,4,opt,name=principal,proto3" json:"principal,omitempty"`
	// contains filtered or unexported fields
}

Response message for the Admin.GetDefaultBillingInfoTemplateUrl rpc.

func (*GetDefaultBillingInfoTemplateUrlResponse) Descriptor deprecated added in v0.52.0

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

Deprecated: Use GetDefaultBillingInfoTemplateUrlResponse.ProtoReflect.Descriptor instead.

func (*GetDefaultBillingInfoTemplateUrlResponse) GetLaunchUrl added in v0.52.0

func (*GetDefaultBillingInfoTemplateUrlResponse) GetPrincipal added in v0.52.0

func (*GetDefaultBillingInfoTemplateUrlResponse) GetStackName added in v0.52.0

func (*GetDefaultBillingInfoTemplateUrlResponse) GetTemplateUrl added in v0.52.0

func (*GetDefaultBillingInfoTemplateUrlResponse) ProtoMessage added in v0.52.0

func (*GetDefaultBillingInfoTemplateUrlResponse) ProtoReflect added in v0.52.0

func (*GetDefaultBillingInfoTemplateUrlResponse) Reset added in v0.52.0

func (*GetDefaultBillingInfoTemplateUrlResponse) String added in v0.52.0

type GetNotificationChannelRequest added in v0.56.1

type GetNotificationChannelRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Request message for Admin.GetNotificationChannel rpc

func (*GetNotificationChannelRequest) Descriptor deprecated added in v0.56.1

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

Deprecated: Use GetNotificationChannelRequest.ProtoReflect.Descriptor instead.

func (*GetNotificationChannelRequest) GetId added in v0.56.1

func (*GetNotificationChannelRequest) ProtoMessage added in v0.56.1

func (*GetNotificationChannelRequest) ProtoMessage()

func (*GetNotificationChannelRequest) ProtoReflect added in v0.56.1

func (*GetNotificationChannelRequest) Reset added in v0.56.1

func (x *GetNotificationChannelRequest) Reset()

func (*GetNotificationChannelRequest) String added in v0.56.1

type GetNotificationSettingsRequest added in v0.56.1

type GetNotificationSettingsRequest struct {
	// contains filtered or unexported fields
}

Request message for Admin.GetNotificationSettings rpc

func (*GetNotificationSettingsRequest) Descriptor deprecated added in v0.56.1

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

Deprecated: Use GetNotificationSettingsRequest.ProtoReflect.Descriptor instead.

func (*GetNotificationSettingsRequest) ProtoMessage added in v0.56.1

func (*GetNotificationSettingsRequest) ProtoMessage()

func (*GetNotificationSettingsRequest) ProtoReflect added in v0.56.1

func (*GetNotificationSettingsRequest) Reset added in v0.56.1

func (x *GetNotificationSettingsRequest) Reset()

func (*GetNotificationSettingsRequest) String added in v0.56.1

type GrpcClient

type GrpcClient struct {
	AdminClient
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, opts ...*ClientOptions) (*GrpcClient, error)

NewClient returns a client connection to the 'admin' service.

func (*GrpcClient) Close

func (c *GrpcClient) Close()

type ListAccountGroupsRequest

type ListAccountGroupsRequest struct {
	// contains filtered or unexported fields
}

Request message for the Admin.ListAccountGroups rpc.

func (*ListAccountGroupsRequest) Descriptor deprecated

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

Deprecated: Use ListAccountGroupsRequest.ProtoReflect.Descriptor instead.

func (*ListAccountGroupsRequest) ProtoMessage

func (*ListAccountGroupsRequest) ProtoMessage()

func (*ListAccountGroupsRequest) ProtoReflect

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

func (*ListAccountGroupsRequest) Reset

func (x *ListAccountGroupsRequest) Reset()

func (*ListAccountGroupsRequest) String

func (x *ListAccountGroupsRequest) String() string

type ListAccountGroupsResponse

type ListAccountGroupsResponse struct {
	AccountGroups []*api.AccountGroup `protobuf:"bytes,1,rep,name=accountGroups,proto3" json:"accountGroups,omitempty"`
	// contains filtered or unexported fields
}

Response message for the Admin.ListAccountGroups rpc.

func (*ListAccountGroupsResponse) Descriptor deprecated

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

Deprecated: Use ListAccountGroupsResponse.ProtoReflect.Descriptor instead.

func (*ListAccountGroupsResponse) GetAccountGroups added in v0.36.1

func (x *ListAccountGroupsResponse) GetAccountGroups() []*api.AccountGroup

func (*ListAccountGroupsResponse) ProtoMessage

func (*ListAccountGroupsResponse) ProtoMessage()

func (*ListAccountGroupsResponse) ProtoReflect

func (*ListAccountGroupsResponse) Reset

func (x *ListAccountGroupsResponse) Reset()

func (*ListAccountGroupsResponse) String

func (x *ListAccountGroupsResponse) String() string

type ListDefaultBillingInfoRequest added in v0.55.0

type ListDefaultBillingInfoRequest struct {
	// contains filtered or unexported fields
}

Request message for the Admin.ListDefaultBillingInfo rpc.

func (*ListDefaultBillingInfoRequest) Descriptor deprecated added in v0.55.0

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

Deprecated: Use ListDefaultBillingInfoRequest.ProtoReflect.Descriptor instead.

func (*ListDefaultBillingInfoRequest) ProtoMessage added in v0.55.0

func (*ListDefaultBillingInfoRequest) ProtoMessage()

func (*ListDefaultBillingInfoRequest) ProtoReflect added in v0.55.0

func (*ListDefaultBillingInfoRequest) Reset added in v0.55.0

func (x *ListDefaultBillingInfoRequest) Reset()

func (*ListDefaultBillingInfoRequest) String added in v0.55.0

type ListNotificationChannelsRequest added in v0.56.1

type ListNotificationChannelsRequest struct {
	// contains filtered or unexported fields
}

Request message for Admin.ListNotificationChannels rpc

func (*ListNotificationChannelsRequest) Descriptor deprecated added in v0.56.1

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

Deprecated: Use ListNotificationChannelsRequest.ProtoReflect.Descriptor instead.

func (*ListNotificationChannelsRequest) ProtoMessage added in v0.56.1

func (*ListNotificationChannelsRequest) ProtoMessage()

func (*ListNotificationChannelsRequest) ProtoReflect added in v0.56.1

func (*ListNotificationChannelsRequest) Reset added in v0.56.1

func (*ListNotificationChannelsRequest) String added in v0.56.1

type ListNotificationChannelsResponse added in v0.56.1

type ListNotificationChannelsResponse struct {
	Channels []*api.NotificationChannel `protobuf:"bytes,1,rep,name=channels,proto3" json:"channels,omitempty"`
	// contains filtered or unexported fields
}

Response message for Admin.ListNotificationChannels rpc

func (*ListNotificationChannelsResponse) Descriptor deprecated added in v0.56.1

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

Deprecated: Use ListNotificationChannelsResponse.ProtoReflect.Descriptor instead.

func (*ListNotificationChannelsResponse) GetChannels added in v0.56.1

func (*ListNotificationChannelsResponse) ProtoMessage added in v0.56.1

func (*ListNotificationChannelsResponse) ProtoMessage()

func (*ListNotificationChannelsResponse) ProtoReflect added in v0.56.1

func (*ListNotificationChannelsResponse) Reset added in v0.56.1

func (*ListNotificationChannelsResponse) String added in v0.56.1

type SaveNotificationSettingsRequest added in v0.56.1

type SaveNotificationSettingsRequest struct {
	IsEnabled bool `protobuf:"varint,1,opt,name=isEnabled,proto3" json:"isEnabled,omitempty"`
	// contains filtered or unexported fields
}

Request message for Admin.SaveNotificationSettings rpc

func (*SaveNotificationSettingsRequest) Descriptor deprecated added in v0.56.1

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

Deprecated: Use SaveNotificationSettingsRequest.ProtoReflect.Descriptor instead.

func (*SaveNotificationSettingsRequest) GetIsEnabled added in v0.56.1

func (x *SaveNotificationSettingsRequest) GetIsEnabled() bool

func (*SaveNotificationSettingsRequest) ProtoMessage added in v0.56.1

func (*SaveNotificationSettingsRequest) ProtoMessage()

func (*SaveNotificationSettingsRequest) ProtoReflect added in v0.56.1

func (*SaveNotificationSettingsRequest) Reset added in v0.56.1

func (*SaveNotificationSettingsRequest) String added in v0.56.1

type UnimplementedAdminServer

type UnimplementedAdminServer struct {
}

UnimplementedAdminServer must be embedded to have forward compatible implementations.

func (UnimplementedAdminServer) CreateDefaultBillingInfoRole added in v0.53.0

func (UnimplementedAdminServer) CreateNotificationChannel added in v0.56.1

func (UnimplementedAdminServer) DeleteDefaultBillingInfoRole added in v0.53.0

func (UnimplementedAdminServer) DeleteNotificationChannel added in v0.56.1

func (UnimplementedAdminServer) GetAccountGroup added in v0.36.3

func (UnimplementedAdminServer) GetDefaultBillingInfo added in v0.53.0

func (UnimplementedAdminServer) GetDefaultBillingInfoTemplateUrl added in v0.52.0

func (UnimplementedAdminServer) GetNotificationChannel added in v0.56.1

func (UnimplementedAdminServer) GetNotificationSettings added in v0.56.1

func (UnimplementedAdminServer) ListDefaultBillingInfo added in v0.55.0

func (UnimplementedAdminServer) ListNotificationChannels added in v0.56.1

func (UnimplementedAdminServer) SaveNotificationSettings added in v0.56.1

func (UnimplementedAdminServer) UpdateDefaultBillingInfoRole added in v0.53.0

func (UnimplementedAdminServer) UpdateNotificationChannel added in v0.56.1

type UnsafeAdminServer

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

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

type UpdateDefaultBillingInfoRoleRequest added in v0.53.0

type UpdateDefaultBillingInfoRoleRequest struct {

	// Required. The target AWS account to update.
	Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

Request message for the Admin.UpdateDefaultBillingInfoRole rpc.

func (*UpdateDefaultBillingInfoRoleRequest) Descriptor deprecated added in v0.53.0

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

Deprecated: Use UpdateDefaultBillingInfoRoleRequest.ProtoReflect.Descriptor instead.

func (*UpdateDefaultBillingInfoRoleRequest) GetTarget added in v0.53.0

func (*UpdateDefaultBillingInfoRoleRequest) ProtoMessage added in v0.53.0

func (*UpdateDefaultBillingInfoRoleRequest) ProtoMessage()

func (*UpdateDefaultBillingInfoRoleRequest) ProtoReflect added in v0.53.0

func (*UpdateDefaultBillingInfoRoleRequest) Reset added in v0.53.0

func (*UpdateDefaultBillingInfoRoleRequest) String added in v0.53.0

type UpdateNotificationChannelRequest added in v0.56.1

type UpdateNotificationChannelRequest struct {

	//Required. ID of Notification Channel to update
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Required. Name of Notification Channel
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Required.
	// Valid values: "email", "slack", "msteams"
	Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	// Required if type="email"
	Email *api.EmailChannel `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	// Required if type="slack"
	Slack *api.SlackChannel `protobuf:"bytes,5,opt,name=slack,proto3" json:"slack,omitempty"`
	// Required if type="msteams"
	Msteams *api.MSTeamsChannel `protobuf:"bytes,6,opt,name=msteams,proto3" json:"msteams,omitempty"`
	// contains filtered or unexported fields
}

Request message for Admin.UpdateNotificationChannel rpc

func (*UpdateNotificationChannelRequest) Descriptor deprecated added in v0.56.1

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

Deprecated: Use UpdateNotificationChannelRequest.ProtoReflect.Descriptor instead.

func (*UpdateNotificationChannelRequest) GetEmail added in v0.56.1

func (*UpdateNotificationChannelRequest) GetId added in v0.56.1

func (*UpdateNotificationChannelRequest) GetMsteams added in v0.56.1

func (*UpdateNotificationChannelRequest) GetName added in v0.56.1

func (*UpdateNotificationChannelRequest) GetSlack added in v0.56.1

func (*UpdateNotificationChannelRequest) GetType added in v0.56.1

func (*UpdateNotificationChannelRequest) ProtoMessage added in v0.56.1

func (*UpdateNotificationChannelRequest) ProtoMessage()

func (*UpdateNotificationChannelRequest) ProtoReflect added in v0.56.1

func (*UpdateNotificationChannelRequest) Reset added in v0.56.1

func (*UpdateNotificationChannelRequest) String added in v0.56.1

Jump to

Keyboard shortcuts

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