oauth_client.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/oauth_client.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  	reflect "reflect"
  13  	sync "sync"
  14  	unsafe "unsafe"
  15  )
  16  
  17  const (
  18  	// Verify that this generated code is sufficiently up-to-date.
  19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
  21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  22  )
  23  
  24  type OAuthClient_Status int32
  25  
  26  const (
  27  	OAuthClient_STATUS_UNSPECIFIED OAuthClient_Status = 0
  28  	// OAuth client is being created.
  29  	OAuthClient_CREATING OAuthClient_Status = 1
  30  	// OAuth client is active.
  31  	OAuthClient_ACTIVE OAuthClient_Status = 2
  32  	// OAuth client is being deleted.
  33  	OAuthClient_DELETING OAuthClient_Status = 3
  34  )
  35  
  36  // Enum value maps for OAuthClient_Status.
  37  var (
  38  	OAuthClient_Status_name = map[int32]string{
  39  		0: "STATUS_UNSPECIFIED",
  40  		1: "CREATING",
  41  		2: "ACTIVE",
  42  		3: "DELETING",
  43  	}
  44  	OAuthClient_Status_value = map[string]int32{
  45  		"STATUS_UNSPECIFIED": 0,
  46  		"CREATING":           1,
  47  		"ACTIVE":             2,
  48  		"DELETING":           3,
  49  	}
  50  )
  51  
  52  func (x OAuthClient_Status) Enum() *OAuthClient_Status {
  53  	p := new(OAuthClient_Status)
  54  	*p = x
  55  	return p
  56  }
  57  
  58  func (x OAuthClient_Status) String() string {
  59  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  60  }
  61  
  62  func (OAuthClient_Status) Descriptor() protoreflect.EnumDescriptor {
  63  	return file_yandex_cloud_iam_v1_oauth_client_proto_enumTypes[0].Descriptor()
  64  }
  65  
  66  func (OAuthClient_Status) Type() protoreflect.EnumType {
  67  	return &file_yandex_cloud_iam_v1_oauth_client_proto_enumTypes[0]
  68  }
  69  
  70  func (x OAuthClient_Status) Number() protoreflect.EnumNumber {
  71  	return protoreflect.EnumNumber(x)
  72  }
  73  
  74  // Deprecated: Use OAuthClient_Status.Descriptor instead.
  75  func (OAuthClient_Status) EnumDescriptor() ([]byte, []int) {
  76  	return file_yandex_cloud_iam_v1_oauth_client_proto_rawDescGZIP(), []int{0, 0}
  77  }
  78  
  79  // An OauthClient resource.
  80  type OAuthClient struct {
  81  	state protoimpl.MessageState `protogen:"open.v1"`
  82  	// ID of the oauth client.
  83  	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  84  	// Name for the oauth client.
  85  	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  86  	// List of redirect uries allowed for the oauth client.
  87  	RedirectUris []string `protobuf:"bytes,3,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"`
  88  	// List of oauth scopes requested by the oauth client.
  89  	Scopes []string `protobuf:"bytes,4,rep,name=scopes,proto3" json:"scopes,omitempty"`
  90  	// ID of the folder oauth client belongs to.
  91  	FolderId string `protobuf:"bytes,5,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
  92  	// Current status of the oauth client.
  93  	Status        OAuthClient_Status `protobuf:"varint,6,opt,name=status,proto3,enum=yandex.cloud.iam.v1.OAuthClient_Status" json:"status,omitempty"`
  94  	unknownFields protoimpl.UnknownFields
  95  	sizeCache     protoimpl.SizeCache
  96  }
  97  
  98  func (x *OAuthClient) Reset() {
  99  	*x = OAuthClient{}
 100  	mi := &file_yandex_cloud_iam_v1_oauth_client_proto_msgTypes[0]
 101  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 102  	ms.StoreMessageInfo(mi)
 103  }
 104  
 105  func (x *OAuthClient) String() string {
 106  	return protoimpl.X.MessageStringOf(x)
 107  }
 108  
 109  func (*OAuthClient) ProtoMessage() {}
 110  
 111  func (x *OAuthClient) ProtoReflect() protoreflect.Message {
 112  	mi := &file_yandex_cloud_iam_v1_oauth_client_proto_msgTypes[0]
 113  	if x != nil {
 114  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 115  		if ms.LoadMessageInfo() == nil {
 116  			ms.StoreMessageInfo(mi)
 117  		}
 118  		return ms
 119  	}
 120  	return mi.MessageOf(x)
 121  }
 122  
 123  // Deprecated: Use OAuthClient.ProtoReflect.Descriptor instead.
 124  func (*OAuthClient) Descriptor() ([]byte, []int) {
 125  	return file_yandex_cloud_iam_v1_oauth_client_proto_rawDescGZIP(), []int{0}
 126  }
 127  
 128  func (x *OAuthClient) GetId() string {
 129  	if x != nil {
 130  		return x.Id
 131  	}
 132  	return ""
 133  }
 134  
 135  func (x *OAuthClient) GetName() string {
 136  	if x != nil {
 137  		return x.Name
 138  	}
 139  	return ""
 140  }
 141  
 142  func (x *OAuthClient) GetRedirectUris() []string {
 143  	if x != nil {
 144  		return x.RedirectUris
 145  	}
 146  	return nil
 147  }
 148  
 149  func (x *OAuthClient) GetScopes() []string {
 150  	if x != nil {
 151  		return x.Scopes
 152  	}
 153  	return nil
 154  }
 155  
 156  func (x *OAuthClient) GetFolderId() string {
 157  	if x != nil {
 158  		return x.FolderId
 159  	}
 160  	return ""
 161  }
 162  
 163  func (x *OAuthClient) GetStatus() OAuthClient_Status {
 164  	if x != nil {
 165  		return x.Status
 166  	}
 167  	return OAuthClient_STATUS_UNSPECIFIED
 168  }
 169  
 170  var File_yandex_cloud_iam_v1_oauth_client_proto protoreflect.FileDescriptor
 171  
 172  const file_yandex_cloud_iam_v1_oauth_client_proto_rawDesc = "" +
 173  	"\n" +
 174  	"&yandex/cloud/iam/v1/oauth_client.proto\x12\x13yandex.cloud.iam.v1\"\x96\x02\n" +
 175  	"\vOAuthClient\x12\x0e\n" +
 176  	"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
 177  	"\x04name\x18\x02 \x01(\tR\x04name\x12#\n" +
 178  	"\rredirect_uris\x18\x03 \x03(\tR\fredirectUris\x12\x16\n" +
 179  	"\x06scopes\x18\x04 \x03(\tR\x06scopes\x12\x1b\n" +
 180  	"\tfolder_id\x18\x05 \x01(\tR\bfolderId\x12?\n" +
 181  	"\x06status\x18\x06 \x01(\x0e2'.yandex.cloud.iam.v1.OAuthClient.StatusR\x06status\"H\n" +
 182  	"\x06Status\x12\x16\n" +
 183  	"\x12STATUS_UNSPECIFIED\x10\x00\x12\f\n" +
 184  	"\bCREATING\x10\x01\x12\n" +
 185  	"\n" +
 186  	"\x06ACTIVE\x10\x02\x12\f\n" +
 187  	"\bDELETING\x10\x03BV\n" +
 188  	"\x17yandex.cloud.api.iam.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1;iamb\x06proto3"
 189  
 190  var (
 191  	file_yandex_cloud_iam_v1_oauth_client_proto_rawDescOnce sync.Once
 192  	file_yandex_cloud_iam_v1_oauth_client_proto_rawDescData []byte
 193  )
 194  
 195  func file_yandex_cloud_iam_v1_oauth_client_proto_rawDescGZIP() []byte {
 196  	file_yandex_cloud_iam_v1_oauth_client_proto_rawDescOnce.Do(func() {
 197  		file_yandex_cloud_iam_v1_oauth_client_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_iam_v1_oauth_client_proto_rawDesc), len(file_yandex_cloud_iam_v1_oauth_client_proto_rawDesc)))
 198  	})
 199  	return file_yandex_cloud_iam_v1_oauth_client_proto_rawDescData
 200  }
 201  
 202  var file_yandex_cloud_iam_v1_oauth_client_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
 203  var file_yandex_cloud_iam_v1_oauth_client_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
 204  var file_yandex_cloud_iam_v1_oauth_client_proto_goTypes = []any{
 205  	(OAuthClient_Status)(0), // 0: yandex.cloud.iam.v1.OAuthClient.Status
 206  	(*OAuthClient)(nil),     // 1: yandex.cloud.iam.v1.OAuthClient
 207  }
 208  var file_yandex_cloud_iam_v1_oauth_client_proto_depIdxs = []int32{
 209  	0, // 0: yandex.cloud.iam.v1.OAuthClient.status:type_name -> yandex.cloud.iam.v1.OAuthClient.Status
 210  	1, // [1:1] is the sub-list for method output_type
 211  	1, // [1:1] is the sub-list for method input_type
 212  	1, // [1:1] is the sub-list for extension type_name
 213  	1, // [1:1] is the sub-list for extension extendee
 214  	0, // [0:1] is the sub-list for field type_name
 215  }
 216  
 217  func init() { file_yandex_cloud_iam_v1_oauth_client_proto_init() }
 218  func file_yandex_cloud_iam_v1_oauth_client_proto_init() {
 219  	if File_yandex_cloud_iam_v1_oauth_client_proto != nil {
 220  		return
 221  	}
 222  	type x struct{}
 223  	out := protoimpl.TypeBuilder{
 224  		File: protoimpl.DescBuilder{
 225  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 226  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_iam_v1_oauth_client_proto_rawDesc), len(file_yandex_cloud_iam_v1_oauth_client_proto_rawDesc)),
 227  			NumEnums:      1,
 228  			NumMessages:   1,
 229  			NumExtensions: 0,
 230  			NumServices:   0,
 231  		},
 232  		GoTypes:           file_yandex_cloud_iam_v1_oauth_client_proto_goTypes,
 233  		DependencyIndexes: file_yandex_cloud_iam_v1_oauth_client_proto_depIdxs,
 234  		EnumInfos:         file_yandex_cloud_iam_v1_oauth_client_proto_enumTypes,
 235  		MessageInfos:      file_yandex_cloud_iam_v1_oauth_client_proto_msgTypes,
 236  	}.Build()
 237  	File_yandex_cloud_iam_v1_oauth_client_proto = out.File
 238  	file_yandex_cloud_iam_v1_oauth_client_proto_goTypes = nil
 239  	file_yandex_cloud_iam_v1_oauth_client_proto_depIdxs = nil
 240  }
 241