service_control.pb.go raw

   1  // Code generated by protoc-gen-go. DO NOT EDIT.
   2  // versions:
   3  // 	protoc-gen-go v1.36.6
   4  // 	protoc        v3.21.12
   5  // source: yandex/cloud/iam/v1/service_control.proto
   6  
   7  package iam
   8  
   9  import (
  10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  12  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
  13  	reflect "reflect"
  14  	sync "sync"
  15  	unsafe "unsafe"
  16  )
  17  
  18  const (
  19  	// Verify that this generated code is sufficiently up-to-date.
  20  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  21  	// Verify that runtime/protoimpl is sufficiently up-to-date.
  22  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  23  )
  24  
  25  type Service_Status int32
  26  
  27  const (
  28  	Service_STATUS_UNSPECIFIED Service_Status = 0
  29  	// The service is enabled.
  30  	Service_ENABLED Service_Status = 1
  31  	// The service is paused.
  32  	Service_PAUSED Service_Status = 2
  33  	// The service is disabled.
  34  	Service_DISABLED Service_Status = 3
  35  	// The service is being enabled.
  36  	Service_ENABLING Service_Status = 4
  37  	// The service is being resumed.
  38  	Service_RESUMING Service_Status = 5
  39  	// The service is being paused.
  40  	Service_PAUSING Service_Status = 6
  41  	// The service is being disabled.
  42  	Service_DISABLING Service_Status = 7
  43  	// The service is in error state.
  44  	Service_ERROR Service_Status = 8
  45  	// The service could be auto enabled.
  46  	Service_DEFAULT Service_Status = 9
  47  )
  48  
  49  // Enum value maps for Service_Status.
  50  var (
  51  	Service_Status_name = map[int32]string{
  52  		0: "STATUS_UNSPECIFIED",
  53  		1: "ENABLED",
  54  		2: "PAUSED",
  55  		3: "DISABLED",
  56  		4: "ENABLING",
  57  		5: "RESUMING",
  58  		6: "PAUSING",
  59  		7: "DISABLING",
  60  		8: "ERROR",
  61  		9: "DEFAULT",
  62  	}
  63  	Service_Status_value = map[string]int32{
  64  		"STATUS_UNSPECIFIED": 0,
  65  		"ENABLED":            1,
  66  		"PAUSED":             2,
  67  		"DISABLED":           3,
  68  		"ENABLING":           4,
  69  		"RESUMING":           5,
  70  		"PAUSING":            6,
  71  		"DISABLING":          7,
  72  		"ERROR":              8,
  73  		"DEFAULT":            9,
  74  	}
  75  )
  76  
  77  func (x Service_Status) Enum() *Service_Status {
  78  	p := new(Service_Status)
  79  	*p = x
  80  	return p
  81  }
  82  
  83  func (x Service_Status) String() string {
  84  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  85  }
  86  
  87  func (Service_Status) Descriptor() protoreflect.EnumDescriptor {
  88  	return file_yandex_cloud_iam_v1_service_control_proto_enumTypes[0].Descriptor()
  89  }
  90  
  91  func (Service_Status) Type() protoreflect.EnumType {
  92  	return &file_yandex_cloud_iam_v1_service_control_proto_enumTypes[0]
  93  }
  94  
  95  func (x Service_Status) Number() protoreflect.EnumNumber {
  96  	return protoreflect.EnumNumber(x)
  97  }
  98  
  99  // Deprecated: Use Service_Status.Descriptor instead.
 100  func (Service_Status) EnumDescriptor() ([]byte, []int) {
 101  	return file_yandex_cloud_iam_v1_service_control_proto_rawDescGZIP(), []int{0, 0}
 102  }
 103  
 104  // A Service.
 105  type Service struct {
 106  	state protoimpl.MessageState `protogen:"open.v1"`
 107  	// ID of the service.
 108  	ServiceId string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
 109  	// Resource that the service belongs to.
 110  	Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
 111  	// Time of the last status update of the service.
 112  	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
 113  	// Current status of the service.
 114  	Status        Service_Status `protobuf:"varint,4,opt,name=status,proto3,enum=yandex.cloud.iam.v1.Service_Status" json:"status,omitempty"`
 115  	unknownFields protoimpl.UnknownFields
 116  	sizeCache     protoimpl.SizeCache
 117  }
 118  
 119  func (x *Service) Reset() {
 120  	*x = Service{}
 121  	mi := &file_yandex_cloud_iam_v1_service_control_proto_msgTypes[0]
 122  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 123  	ms.StoreMessageInfo(mi)
 124  }
 125  
 126  func (x *Service) String() string {
 127  	return protoimpl.X.MessageStringOf(x)
 128  }
 129  
 130  func (*Service) ProtoMessage() {}
 131  
 132  func (x *Service) ProtoReflect() protoreflect.Message {
 133  	mi := &file_yandex_cloud_iam_v1_service_control_proto_msgTypes[0]
 134  	if x != nil {
 135  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 136  		if ms.LoadMessageInfo() == nil {
 137  			ms.StoreMessageInfo(mi)
 138  		}
 139  		return ms
 140  	}
 141  	return mi.MessageOf(x)
 142  }
 143  
 144  // Deprecated: Use Service.ProtoReflect.Descriptor instead.
 145  func (*Service) Descriptor() ([]byte, []int) {
 146  	return file_yandex_cloud_iam_v1_service_control_proto_rawDescGZIP(), []int{0}
 147  }
 148  
 149  func (x *Service) GetServiceId() string {
 150  	if x != nil {
 151  		return x.ServiceId
 152  	}
 153  	return ""
 154  }
 155  
 156  func (x *Service) GetResource() *Resource {
 157  	if x != nil {
 158  		return x.Resource
 159  	}
 160  	return nil
 161  }
 162  
 163  func (x *Service) GetUpdatedAt() *timestamppb.Timestamp {
 164  	if x != nil {
 165  		return x.UpdatedAt
 166  	}
 167  	return nil
 168  }
 169  
 170  func (x *Service) GetStatus() Service_Status {
 171  	if x != nil {
 172  		return x.Status
 173  	}
 174  	return Service_STATUS_UNSPECIFIED
 175  }
 176  
 177  type ServiceAgent struct {
 178  	state protoimpl.MessageState `protogen:"open.v1"`
 179  	// ID of the agent service account.
 180  	ServiceAccountId string `protobuf:"bytes,1,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"`
 181  	// ID of the service.
 182  	ServiceId string `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
 183  	// ID of the microservice.
 184  	MicroserviceId string `protobuf:"bytes,3,opt,name=microservice_id,json=microserviceId,proto3" json:"microservice_id,omitempty"`
 185  	unknownFields  protoimpl.UnknownFields
 186  	sizeCache      protoimpl.SizeCache
 187  }
 188  
 189  func (x *ServiceAgent) Reset() {
 190  	*x = ServiceAgent{}
 191  	mi := &file_yandex_cloud_iam_v1_service_control_proto_msgTypes[1]
 192  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 193  	ms.StoreMessageInfo(mi)
 194  }
 195  
 196  func (x *ServiceAgent) String() string {
 197  	return protoimpl.X.MessageStringOf(x)
 198  }
 199  
 200  func (*ServiceAgent) ProtoMessage() {}
 201  
 202  func (x *ServiceAgent) ProtoReflect() protoreflect.Message {
 203  	mi := &file_yandex_cloud_iam_v1_service_control_proto_msgTypes[1]
 204  	if x != nil {
 205  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 206  		if ms.LoadMessageInfo() == nil {
 207  			ms.StoreMessageInfo(mi)
 208  		}
 209  		return ms
 210  	}
 211  	return mi.MessageOf(x)
 212  }
 213  
 214  // Deprecated: Use ServiceAgent.ProtoReflect.Descriptor instead.
 215  func (*ServiceAgent) Descriptor() ([]byte, []int) {
 216  	return file_yandex_cloud_iam_v1_service_control_proto_rawDescGZIP(), []int{1}
 217  }
 218  
 219  func (x *ServiceAgent) GetServiceAccountId() string {
 220  	if x != nil {
 221  		return x.ServiceAccountId
 222  	}
 223  	return ""
 224  }
 225  
 226  func (x *ServiceAgent) GetServiceId() string {
 227  	if x != nil {
 228  		return x.ServiceId
 229  	}
 230  	return ""
 231  }
 232  
 233  func (x *ServiceAgent) GetMicroserviceId() string {
 234  	if x != nil {
 235  		return x.MicroserviceId
 236  	}
 237  	return ""
 238  }
 239  
 240  var File_yandex_cloud_iam_v1_service_control_proto protoreflect.FileDescriptor
 241  
 242  const file_yandex_cloud_iam_v1_service_control_proto_rawDesc = "" +
 243  	"\n" +
 244  	")yandex/cloud/iam/v1/service_control.proto\x12\x13yandex.cloud.iam.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\"yandex/cloud/iam/v1/resource.proto\"\xf5\x02\n" +
 245  	"\aService\x12\x1d\n" +
 246  	"\n" +
 247  	"service_id\x18\x01 \x01(\tR\tserviceId\x129\n" +
 248  	"\bresource\x18\x02 \x01(\v2\x1d.yandex.cloud.iam.v1.ResourceR\bresource\x129\n" +
 249  	"\n" +
 250  	"updated_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12;\n" +
 251  	"\x06status\x18\x04 \x01(\x0e2#.yandex.cloud.iam.v1.Service.StatusR\x06status\"\x97\x01\n" +
 252  	"\x06Status\x12\x16\n" +
 253  	"\x12STATUS_UNSPECIFIED\x10\x00\x12\v\n" +
 254  	"\aENABLED\x10\x01\x12\n" +
 255  	"\n" +
 256  	"\x06PAUSED\x10\x02\x12\f\n" +
 257  	"\bDISABLED\x10\x03\x12\f\n" +
 258  	"\bENABLING\x10\x04\x12\f\n" +
 259  	"\bRESUMING\x10\x05\x12\v\n" +
 260  	"\aPAUSING\x10\x06\x12\r\n" +
 261  	"\tDISABLING\x10\a\x12\t\n" +
 262  	"\x05ERROR\x10\b\x12\v\n" +
 263  	"\aDEFAULT\x10\t\"\x84\x01\n" +
 264  	"\fServiceAgent\x12,\n" +
 265  	"\x12service_account_id\x18\x01 \x01(\tR\x10serviceAccountId\x12\x1d\n" +
 266  	"\n" +
 267  	"service_id\x18\x02 \x01(\tR\tserviceId\x12'\n" +
 268  	"\x0fmicroservice_id\x18\x03 \x01(\tR\x0emicroserviceIdBV\n" +
 269  	"\x17yandex.cloud.api.iam.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1;iamb\x06proto3"
 270  
 271  var (
 272  	file_yandex_cloud_iam_v1_service_control_proto_rawDescOnce sync.Once
 273  	file_yandex_cloud_iam_v1_service_control_proto_rawDescData []byte
 274  )
 275  
 276  func file_yandex_cloud_iam_v1_service_control_proto_rawDescGZIP() []byte {
 277  	file_yandex_cloud_iam_v1_service_control_proto_rawDescOnce.Do(func() {
 278  		file_yandex_cloud_iam_v1_service_control_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_iam_v1_service_control_proto_rawDesc), len(file_yandex_cloud_iam_v1_service_control_proto_rawDesc)))
 279  	})
 280  	return file_yandex_cloud_iam_v1_service_control_proto_rawDescData
 281  }
 282  
 283  var file_yandex_cloud_iam_v1_service_control_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
 284  var file_yandex_cloud_iam_v1_service_control_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
 285  var file_yandex_cloud_iam_v1_service_control_proto_goTypes = []any{
 286  	(Service_Status)(0),           // 0: yandex.cloud.iam.v1.Service.Status
 287  	(*Service)(nil),               // 1: yandex.cloud.iam.v1.Service
 288  	(*ServiceAgent)(nil),          // 2: yandex.cloud.iam.v1.ServiceAgent
 289  	(*Resource)(nil),              // 3: yandex.cloud.iam.v1.Resource
 290  	(*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
 291  }
 292  var file_yandex_cloud_iam_v1_service_control_proto_depIdxs = []int32{
 293  	3, // 0: yandex.cloud.iam.v1.Service.resource:type_name -> yandex.cloud.iam.v1.Resource
 294  	4, // 1: yandex.cloud.iam.v1.Service.updated_at:type_name -> google.protobuf.Timestamp
 295  	0, // 2: yandex.cloud.iam.v1.Service.status:type_name -> yandex.cloud.iam.v1.Service.Status
 296  	3, // [3:3] is the sub-list for method output_type
 297  	3, // [3:3] is the sub-list for method input_type
 298  	3, // [3:3] is the sub-list for extension type_name
 299  	3, // [3:3] is the sub-list for extension extendee
 300  	0, // [0:3] is the sub-list for field type_name
 301  }
 302  
 303  func init() { file_yandex_cloud_iam_v1_service_control_proto_init() }
 304  func file_yandex_cloud_iam_v1_service_control_proto_init() {
 305  	if File_yandex_cloud_iam_v1_service_control_proto != nil {
 306  		return
 307  	}
 308  	file_yandex_cloud_iam_v1_resource_proto_init()
 309  	type x struct{}
 310  	out := protoimpl.TypeBuilder{
 311  		File: protoimpl.DescBuilder{
 312  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 313  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_iam_v1_service_control_proto_rawDesc), len(file_yandex_cloud_iam_v1_service_control_proto_rawDesc)),
 314  			NumEnums:      1,
 315  			NumMessages:   2,
 316  			NumExtensions: 0,
 317  			NumServices:   0,
 318  		},
 319  		GoTypes:           file_yandex_cloud_iam_v1_service_control_proto_goTypes,
 320  		DependencyIndexes: file_yandex_cloud_iam_v1_service_control_proto_depIdxs,
 321  		EnumInfos:         file_yandex_cloud_iam_v1_service_control_proto_enumTypes,
 322  		MessageInfos:      file_yandex_cloud_iam_v1_service_control_proto_msgTypes,
 323  	}.Build()
 324  	File_yandex_cloud_iam_v1_service_control_proto = out.File
 325  	file_yandex_cloud_iam_v1_service_control_proto_goTypes = nil
 326  	file_yandex_cloud_iam_v1_service_control_proto_depIdxs = nil
 327  }
 328