github.com/cloudwan/edgelq-sdk@v1.15.4/devices/resources/v1/provisioning_policy/provisioning_policy.pb.go (about) 1 // Code generated by protoc-gen-goten-go 2 // File: edgelq/devices/proto/v1/provisioning_policy.proto 3 // DO NOT EDIT!!! 4 5 package provisioning_policy 6 7 import ( 8 "fmt" 9 "reflect" 10 "sync" 11 12 "google.golang.org/protobuf/encoding/protojson" 13 "google.golang.org/protobuf/proto" 14 preflect "google.golang.org/protobuf/reflect/protoreflect" 15 "google.golang.org/protobuf/runtime/protoimpl" 16 ) 17 18 // proto imports 19 import ( 20 device "github.com/cloudwan/edgelq-sdk/devices/resources/v1/device" 21 project "github.com/cloudwan/edgelq-sdk/devices/resources/v1/project" 22 iam_condition "github.com/cloudwan/edgelq-sdk/iam/resources/v1/condition" 23 iam_role "github.com/cloudwan/edgelq-sdk/iam/resources/v1/role" 24 iam_service_account "github.com/cloudwan/edgelq-sdk/iam/resources/v1/service_account" 25 meta "github.com/cloudwan/goten-sdk/types/meta" 26 structpb "google.golang.org/protobuf/types/known/structpb" 27 ) 28 29 // Reference imports to suppress errors if they are not otherwise used. 30 var ( 31 _ = fmt.Errorf 32 _ = reflect.Method{} 33 _ = sync.Once{} 34 35 _ = protojson.MarshalOptions{} 36 _ = proto.MarshalOptions{} 37 _ = preflect.Value{} 38 _ = protoimpl.DescBuilder{} 39 ) 40 41 // make sure we're using proto imports 42 var ( 43 _ = &device.Device{} 44 _ = &project.Project{} 45 _ = &iam_condition.Condition{} 46 _ = &iam_role.Role{} 47 _ = &iam_service_account.ServiceAccount{} 48 _ = &structpb.Struct{} 49 _ = &meta.Meta{} 50 ) 51 52 const ( 53 // Verify that this generated code is sufficiently up-to-date. 54 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 55 // Verify that runtime/protoimpl is sufficiently up-to-date. 56 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 57 ) 58 59 type ProvisioningPolicy_Mode int32 60 61 const ( 62 // Mode is not defined, devices will do nothing when the policy is 63 // configured in this mode. 64 ProvisioningPolicy_MODE_UNSPECIFIED ProvisioningPolicy_Mode = 0 65 // Devices will create Device resources automatically without any human 66 // interaction. 67 ProvisioningPolicy_UNATTENDED ProvisioningPolicy_Mode = 1 68 // Devices will create ProvisioningApprovalRequests so that users can 69 // approve. 70 ProvisioningPolicy_MANUAL_APPROVAL ProvisioningPolicy_Mode = 2 71 ) 72 73 var ( 74 ProvisioningPolicy_Mode_name = map[int32]string{ 75 0: "MODE_UNSPECIFIED", 76 1: "UNATTENDED", 77 2: "MANUAL_APPROVAL", 78 } 79 80 ProvisioningPolicy_Mode_value = map[string]int32{ 81 "MODE_UNSPECIFIED": 0, 82 "UNATTENDED": 1, 83 "MANUAL_APPROVAL": 2, 84 } 85 ) 86 87 func (x ProvisioningPolicy_Mode) Enum() *ProvisioningPolicy_Mode { 88 p := new(ProvisioningPolicy_Mode) 89 *p = x 90 return p 91 } 92 93 func (x ProvisioningPolicy_Mode) String() string { 94 return protoimpl.X.EnumStringOf(x.Descriptor(), preflect.EnumNumber(x)) 95 } 96 97 func (ProvisioningPolicy_Mode) Descriptor() preflect.EnumDescriptor { 98 return edgelq_devices_proto_v1_provisioning_policy_proto_enumTypes[0].Descriptor() 99 } 100 101 func (ProvisioningPolicy_Mode) Type() preflect.EnumType { 102 return &edgelq_devices_proto_v1_provisioning_policy_proto_enumTypes[0] 103 } 104 105 func (x ProvisioningPolicy_Mode) Number() preflect.EnumNumber { 106 return preflect.EnumNumber(x) 107 } 108 109 // Deprecated, Use ProvisioningPolicy_Mode.ProtoReflect.Descriptor instead. 110 func (ProvisioningPolicy_Mode) EnumDescriptor() ([]byte, []int) { 111 return edgelq_devices_proto_v1_provisioning_policy_proto_rawDescGZIP(), []int{0, 0} 112 } 113 114 // ProvisioningPolicy Resource 115 type ProvisioningPolicy struct { 116 state protoimpl.MessageState 117 sizeCache protoimpl.SizeCache 118 unknownFields protoimpl.UnknownFields 119 // Name of ProvisioningPolicy 120 // When creating a new instance, this field is optional and if not provided, 121 // it will be generated automatically. Last ID segment must conform to the 122 // following regex: [a-z][a-z0-9\\-]{0,28}[a-z0-9] 123 Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty"` 124 // Metadata is an object with information like create, update and delete time 125 // (for async deleted resources), has user labels/annotations, sharding 126 // information, multi-region syncing information and may have non-schema 127 // owners (useful for taking ownership of resources belonging to lower level 128 // services by higher ones). 129 Metadata *meta.Meta `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` 130 // Display Name 131 DisplayName string `protobuf:"bytes,6,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` 132 // Description 133 Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` 134 Spec *ProvisioningPolicy_Spec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` 135 Status *ProvisioningPolicy_Status `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` 136 } 137 138 func (m *ProvisioningPolicy) Reset() { 139 *m = ProvisioningPolicy{} 140 if protoimpl.UnsafeEnabled { 141 mi := &edgelq_devices_proto_v1_provisioning_policy_proto_msgTypes[0] 142 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 143 ms.StoreMessageInfo(mi) 144 } 145 } 146 147 func (m *ProvisioningPolicy) String() string { 148 return protoimpl.X.MessageStringOf(m) 149 } 150 151 func (*ProvisioningPolicy) ProtoMessage() {} 152 153 func (m *ProvisioningPolicy) ProtoReflect() preflect.Message { 154 mi := &edgelq_devices_proto_v1_provisioning_policy_proto_msgTypes[0] 155 if protoimpl.UnsafeEnabled && m != nil { 156 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 157 if ms.LoadMessageInfo() == nil { 158 ms.StoreMessageInfo(mi) 159 } 160 return ms 161 } 162 return mi.MessageOf(m) 163 } 164 165 func (*ProvisioningPolicy) GotenMessage() {} 166 167 // Deprecated, Use ProvisioningPolicy.ProtoReflect.Descriptor instead. 168 func (*ProvisioningPolicy) Descriptor() ([]byte, []int) { 169 return edgelq_devices_proto_v1_provisioning_policy_proto_rawDescGZIP(), []int{0} 170 } 171 172 func (m *ProvisioningPolicy) Unmarshal(b []byte) error { 173 return proto.Unmarshal(b, m) 174 } 175 176 func (m *ProvisioningPolicy) Marshal() ([]byte, error) { 177 return proto.Marshal(m) 178 } 179 180 func (m *ProvisioningPolicy) MarshalJSON() ([]byte, error) { 181 return protojson.MarshalOptions{}.Marshal(m) 182 } 183 184 func (m *ProvisioningPolicy) UnmarshalJSON(data []byte) error { 185 return protojson.Unmarshal(data, m) 186 } 187 188 func (m *ProvisioningPolicy) GetName() *Name { 189 if m != nil { 190 return m.Name 191 } 192 return nil 193 } 194 195 func (m *ProvisioningPolicy) GetMetadata() *meta.Meta { 196 if m != nil { 197 return m.Metadata 198 } 199 return nil 200 } 201 202 func (m *ProvisioningPolicy) GetDisplayName() string { 203 if m != nil { 204 return m.DisplayName 205 } 206 return "" 207 } 208 209 func (m *ProvisioningPolicy) GetDescription() string { 210 if m != nil { 211 return m.Description 212 } 213 return "" 214 } 215 216 func (m *ProvisioningPolicy) GetSpec() *ProvisioningPolicy_Spec { 217 if m != nil { 218 return m.Spec 219 } 220 return nil 221 } 222 223 func (m *ProvisioningPolicy) GetStatus() *ProvisioningPolicy_Status { 224 if m != nil { 225 return m.Status 226 } 227 return nil 228 } 229 230 func (m *ProvisioningPolicy) SetName(fv *Name) { 231 if m == nil { 232 panic(fmt.Errorf("can't set %s on nil %s", "Name", "ProvisioningPolicy")) 233 } 234 m.Name = fv 235 } 236 237 func (m *ProvisioningPolicy) SetMetadata(fv *meta.Meta) { 238 if m == nil { 239 panic(fmt.Errorf("can't set %s on nil %s", "Metadata", "ProvisioningPolicy")) 240 } 241 m.Metadata = fv 242 } 243 244 func (m *ProvisioningPolicy) SetDisplayName(fv string) { 245 if m == nil { 246 panic(fmt.Errorf("can't set %s on nil %s", "DisplayName", "ProvisioningPolicy")) 247 } 248 m.DisplayName = fv 249 } 250 251 func (m *ProvisioningPolicy) SetDescription(fv string) { 252 if m == nil { 253 panic(fmt.Errorf("can't set %s on nil %s", "Description", "ProvisioningPolicy")) 254 } 255 m.Description = fv 256 } 257 258 func (m *ProvisioningPolicy) SetSpec(fv *ProvisioningPolicy_Spec) { 259 if m == nil { 260 panic(fmt.Errorf("can't set %s on nil %s", "Spec", "ProvisioningPolicy")) 261 } 262 m.Spec = fv 263 } 264 265 func (m *ProvisioningPolicy) SetStatus(fv *ProvisioningPolicy_Status) { 266 if m == nil { 267 panic(fmt.Errorf("can't set %s on nil %s", "Status", "ProvisioningPolicy")) 268 } 269 m.Status = fv 270 } 271 272 type ProvisioningPolicy_Spec struct { 273 state protoimpl.MessageState 274 sizeCache protoimpl.SizeCache 275 unknownFields protoimpl.UnknownFields 276 // Provisioning mode. 277 Mode ProvisioningPolicy_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=ntt.devices.v1.ProvisioningPolicy_Mode" json:"mode,omitempty"` 278 // The service account associated with the policy. 279 // Devices have to have a key of this service account to conduct 280 // self-provisioning. 281 ServiceAccount *iam_service_account.Reference `protobuf:"bytes,2,opt,customtype=Reference,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` 282 // Template for device name. 283 DeviceNameFormat string `protobuf:"bytes,3,opt,name=device_name_format,json=deviceNameFormat,proto3" json:"device_name_format,omitempty"` 284 // Template for device display name. 285 DeviceDisplayNameFormat string `protobuf:"bytes,11,opt,name=device_display_name_format,json=deviceDisplayNameFormat,proto3" json:"device_display_name_format,omitempty"` 286 // Deprecated: Use template instead. 287 // labels that provisioned Device resources will have. 288 Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 289 // Template for Devices to be generated. 290 // Used only on Device resource creation, changing the value won't affect 291 // existing Device resources. 292 Template *ProvisioningPolicy_Spec_Template `protobuf:"bytes,5,opt,name=template,proto3" json:"template,omitempty"` 293 // Device hardware identity paths (fields) to use for matching pre-existing 294 // device resources when provisioning. 295 IdentityFieldPaths []string `protobuf:"bytes,6,rep,name=identity_field_paths,json=identityFieldPaths,proto3" json:"identity_field_paths,omitempty"` 296 // Role that the newly created service account should be bound to. 297 // If not specified, will use the default value of 298 // "services/devices.edgelq.com/roles/v1-device-agent". 299 Role *iam_role.Reference `protobuf:"bytes,7,opt,customtype=Reference,name=role,proto3" json:"role,omitempty"` 300 // List of scope params to add IF role is specified. Ignored if role is 301 // empty. 302 ScopeParams []*iam_role.ScopeParam `protobuf:"bytes,9,rep,name=scope_params,json=scopeParams,proto3" json:"scope_params,omitempty"` 303 // Optional condition for the role binding. 304 // DEPRECATED, use extra_conditions 305 Condition *iam_condition.Reference `protobuf:"bytes,8,opt,customtype=Reference,name=condition,proto3" json:"condition,omitempty"` 306 // Condition params 307 // DEPRECATED, use extra_conditions 308 ConditionParams *structpb.Struct `protobuf:"bytes,10,opt,name=condition_params,json=conditionParams,proto3" json:"condition_params,omitempty"` 309 // Optional extra conditions to be attached for a role. 310 ExtraConditions []*iam_condition.ExecutableCondition `protobuf:"bytes,12,rep,name=extra_conditions,json=extraConditions,proto3" json:"extra_conditions,omitempty"` 311 } 312 313 func (m *ProvisioningPolicy_Spec) Reset() { 314 *m = ProvisioningPolicy_Spec{} 315 if protoimpl.UnsafeEnabled { 316 mi := &edgelq_devices_proto_v1_provisioning_policy_proto_msgTypes[1] 317 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 318 ms.StoreMessageInfo(mi) 319 } 320 } 321 322 func (m *ProvisioningPolicy_Spec) String() string { 323 return protoimpl.X.MessageStringOf(m) 324 } 325 326 func (*ProvisioningPolicy_Spec) ProtoMessage() {} 327 328 func (m *ProvisioningPolicy_Spec) ProtoReflect() preflect.Message { 329 mi := &edgelq_devices_proto_v1_provisioning_policy_proto_msgTypes[1] 330 if protoimpl.UnsafeEnabled && m != nil { 331 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 332 if ms.LoadMessageInfo() == nil { 333 ms.StoreMessageInfo(mi) 334 } 335 return ms 336 } 337 return mi.MessageOf(m) 338 } 339 340 func (*ProvisioningPolicy_Spec) GotenMessage() {} 341 342 // Deprecated, Use ProvisioningPolicy_Spec.ProtoReflect.Descriptor instead. 343 func (*ProvisioningPolicy_Spec) Descriptor() ([]byte, []int) { 344 return edgelq_devices_proto_v1_provisioning_policy_proto_rawDescGZIP(), []int{0, 0} 345 } 346 347 func (m *ProvisioningPolicy_Spec) Unmarshal(b []byte) error { 348 return proto.Unmarshal(b, m) 349 } 350 351 func (m *ProvisioningPolicy_Spec) Marshal() ([]byte, error) { 352 return proto.Marshal(m) 353 } 354 355 func (m *ProvisioningPolicy_Spec) MarshalJSON() ([]byte, error) { 356 return protojson.MarshalOptions{}.Marshal(m) 357 } 358 359 func (m *ProvisioningPolicy_Spec) UnmarshalJSON(data []byte) error { 360 return protojson.Unmarshal(data, m) 361 } 362 363 func (m *ProvisioningPolicy_Spec) GetMode() ProvisioningPolicy_Mode { 364 if m != nil { 365 return m.Mode 366 } 367 return ProvisioningPolicy_MODE_UNSPECIFIED 368 } 369 370 func (m *ProvisioningPolicy_Spec) GetServiceAccount() *iam_service_account.Reference { 371 if m != nil { 372 return m.ServiceAccount 373 } 374 return nil 375 } 376 377 func (m *ProvisioningPolicy_Spec) GetDeviceNameFormat() string { 378 if m != nil { 379 return m.DeviceNameFormat 380 } 381 return "" 382 } 383 384 func (m *ProvisioningPolicy_Spec) GetDeviceDisplayNameFormat() string { 385 if m != nil { 386 return m.DeviceDisplayNameFormat 387 } 388 return "" 389 } 390 391 func (m *ProvisioningPolicy_Spec) GetLabels() map[string]string { 392 if m != nil { 393 return m.Labels 394 } 395 return nil 396 } 397 398 func (m *ProvisioningPolicy_Spec) GetTemplate() *ProvisioningPolicy_Spec_Template { 399 if m != nil { 400 return m.Template 401 } 402 return nil 403 } 404 405 func (m *ProvisioningPolicy_Spec) GetIdentityFieldPaths() []string { 406 if m != nil { 407 return m.IdentityFieldPaths 408 } 409 return nil 410 } 411 412 func (m *ProvisioningPolicy_Spec) GetRole() *iam_role.Reference { 413 if m != nil { 414 return m.Role 415 } 416 return nil 417 } 418 419 func (m *ProvisioningPolicy_Spec) GetScopeParams() []*iam_role.ScopeParam { 420 if m != nil { 421 return m.ScopeParams 422 } 423 return nil 424 } 425 426 func (m *ProvisioningPolicy_Spec) GetCondition() *iam_condition.Reference { 427 if m != nil { 428 return m.Condition 429 } 430 return nil 431 } 432 433 func (m *ProvisioningPolicy_Spec) GetConditionParams() *structpb.Struct { 434 if m != nil { 435 return m.ConditionParams 436 } 437 return nil 438 } 439 440 func (m *ProvisioningPolicy_Spec) GetExtraConditions() []*iam_condition.ExecutableCondition { 441 if m != nil { 442 return m.ExtraConditions 443 } 444 return nil 445 } 446 447 func (m *ProvisioningPolicy_Spec) SetMode(fv ProvisioningPolicy_Mode) { 448 if m == nil { 449 panic(fmt.Errorf("can't set %s on nil %s", "Mode", "ProvisioningPolicy_Spec")) 450 } 451 m.Mode = fv 452 } 453 454 func (m *ProvisioningPolicy_Spec) SetServiceAccount(fv *iam_service_account.Reference) { 455 if m == nil { 456 panic(fmt.Errorf("can't set %s on nil %s", "ServiceAccount", "ProvisioningPolicy_Spec")) 457 } 458 m.ServiceAccount = fv 459 } 460 461 func (m *ProvisioningPolicy_Spec) SetDeviceNameFormat(fv string) { 462 if m == nil { 463 panic(fmt.Errorf("can't set %s on nil %s", "DeviceNameFormat", "ProvisioningPolicy_Spec")) 464 } 465 m.DeviceNameFormat = fv 466 } 467 468 func (m *ProvisioningPolicy_Spec) SetDeviceDisplayNameFormat(fv string) { 469 if m == nil { 470 panic(fmt.Errorf("can't set %s on nil %s", "DeviceDisplayNameFormat", "ProvisioningPolicy_Spec")) 471 } 472 m.DeviceDisplayNameFormat = fv 473 } 474 475 func (m *ProvisioningPolicy_Spec) SetLabels(fv map[string]string) { 476 if m == nil { 477 panic(fmt.Errorf("can't set %s on nil %s", "Labels", "ProvisioningPolicy_Spec")) 478 } 479 m.Labels = fv 480 } 481 482 func (m *ProvisioningPolicy_Spec) SetTemplate(fv *ProvisioningPolicy_Spec_Template) { 483 if m == nil { 484 panic(fmt.Errorf("can't set %s on nil %s", "Template", "ProvisioningPolicy_Spec")) 485 } 486 m.Template = fv 487 } 488 489 func (m *ProvisioningPolicy_Spec) SetIdentityFieldPaths(fv []string) { 490 if m == nil { 491 panic(fmt.Errorf("can't set %s on nil %s", "IdentityFieldPaths", "ProvisioningPolicy_Spec")) 492 } 493 m.IdentityFieldPaths = fv 494 } 495 496 func (m *ProvisioningPolicy_Spec) SetRole(fv *iam_role.Reference) { 497 if m == nil { 498 panic(fmt.Errorf("can't set %s on nil %s", "Role", "ProvisioningPolicy_Spec")) 499 } 500 m.Role = fv 501 } 502 503 func (m *ProvisioningPolicy_Spec) SetScopeParams(fv []*iam_role.ScopeParam) { 504 if m == nil { 505 panic(fmt.Errorf("can't set %s on nil %s", "ScopeParams", "ProvisioningPolicy_Spec")) 506 } 507 m.ScopeParams = fv 508 } 509 510 func (m *ProvisioningPolicy_Spec) SetCondition(fv *iam_condition.Reference) { 511 if m == nil { 512 panic(fmt.Errorf("can't set %s on nil %s", "Condition", "ProvisioningPolicy_Spec")) 513 } 514 m.Condition = fv 515 } 516 517 func (m *ProvisioningPolicy_Spec) SetConditionParams(fv *structpb.Struct) { 518 if m == nil { 519 panic(fmt.Errorf("can't set %s on nil %s", "ConditionParams", "ProvisioningPolicy_Spec")) 520 } 521 m.ConditionParams = fv 522 } 523 524 func (m *ProvisioningPolicy_Spec) SetExtraConditions(fv []*iam_condition.ExecutableCondition) { 525 if m == nil { 526 panic(fmt.Errorf("can't set %s on nil %s", "ExtraConditions", "ProvisioningPolicy_Spec")) 527 } 528 m.ExtraConditions = fv 529 } 530 531 type ProvisioningPolicy_Status struct { 532 state protoimpl.MessageState 533 sizeCache protoimpl.SizeCache 534 unknownFields protoimpl.UnknownFields 535 } 536 537 func (m *ProvisioningPolicy_Status) Reset() { 538 *m = ProvisioningPolicy_Status{} 539 if protoimpl.UnsafeEnabled { 540 mi := &edgelq_devices_proto_v1_provisioning_policy_proto_msgTypes[2] 541 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 542 ms.StoreMessageInfo(mi) 543 } 544 } 545 546 func (m *ProvisioningPolicy_Status) String() string { 547 return protoimpl.X.MessageStringOf(m) 548 } 549 550 func (*ProvisioningPolicy_Status) ProtoMessage() {} 551 552 func (m *ProvisioningPolicy_Status) ProtoReflect() preflect.Message { 553 mi := &edgelq_devices_proto_v1_provisioning_policy_proto_msgTypes[2] 554 if protoimpl.UnsafeEnabled && m != nil { 555 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 556 if ms.LoadMessageInfo() == nil { 557 ms.StoreMessageInfo(mi) 558 } 559 return ms 560 } 561 return mi.MessageOf(m) 562 } 563 564 func (*ProvisioningPolicy_Status) GotenMessage() {} 565 566 // Deprecated, Use ProvisioningPolicy_Status.ProtoReflect.Descriptor instead. 567 func (*ProvisioningPolicy_Status) Descriptor() ([]byte, []int) { 568 return edgelq_devices_proto_v1_provisioning_policy_proto_rawDescGZIP(), []int{0, 1} 569 } 570 571 func (m *ProvisioningPolicy_Status) Unmarshal(b []byte) error { 572 return proto.Unmarshal(b, m) 573 } 574 575 func (m *ProvisioningPolicy_Status) Marshal() ([]byte, error) { 576 return proto.Marshal(m) 577 } 578 579 func (m *ProvisioningPolicy_Status) MarshalJSON() ([]byte, error) { 580 return protojson.MarshalOptions{}.Marshal(m) 581 } 582 583 func (m *ProvisioningPolicy_Status) UnmarshalJSON(data []byte) error { 584 return protojson.Unmarshal(data, m) 585 } 586 587 type ProvisioningPolicy_Spec_Template struct { 588 state protoimpl.MessageState 589 sizeCache protoimpl.SizeCache 590 unknownFields protoimpl.UnknownFields 591 Metadata *meta.Meta `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` 592 // service_account will be ignored. 593 Spec *device.Device_Spec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` 594 PublicListingSpec *device.Device_PublicListingSpec `protobuf:"bytes,3,opt,name=public_listing_spec,json=publicListingSpec,proto3" json:"public_listing_spec,omitempty"` 595 } 596 597 func (m *ProvisioningPolicy_Spec_Template) Reset() { 598 *m = ProvisioningPolicy_Spec_Template{} 599 if protoimpl.UnsafeEnabled { 600 mi := &edgelq_devices_proto_v1_provisioning_policy_proto_msgTypes[4] 601 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 602 ms.StoreMessageInfo(mi) 603 } 604 } 605 606 func (m *ProvisioningPolicy_Spec_Template) String() string { 607 return protoimpl.X.MessageStringOf(m) 608 } 609 610 func (*ProvisioningPolicy_Spec_Template) ProtoMessage() {} 611 612 func (m *ProvisioningPolicy_Spec_Template) ProtoReflect() preflect.Message { 613 mi := &edgelq_devices_proto_v1_provisioning_policy_proto_msgTypes[4] 614 if protoimpl.UnsafeEnabled && m != nil { 615 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 616 if ms.LoadMessageInfo() == nil { 617 ms.StoreMessageInfo(mi) 618 } 619 return ms 620 } 621 return mi.MessageOf(m) 622 } 623 624 func (*ProvisioningPolicy_Spec_Template) GotenMessage() {} 625 626 // Deprecated, Use ProvisioningPolicy_Spec_Template.ProtoReflect.Descriptor instead. 627 func (*ProvisioningPolicy_Spec_Template) Descriptor() ([]byte, []int) { 628 return edgelq_devices_proto_v1_provisioning_policy_proto_rawDescGZIP(), []int{0, 0, 1} 629 } 630 631 func (m *ProvisioningPolicy_Spec_Template) Unmarshal(b []byte) error { 632 return proto.Unmarshal(b, m) 633 } 634 635 func (m *ProvisioningPolicy_Spec_Template) Marshal() ([]byte, error) { 636 return proto.Marshal(m) 637 } 638 639 func (m *ProvisioningPolicy_Spec_Template) MarshalJSON() ([]byte, error) { 640 return protojson.MarshalOptions{}.Marshal(m) 641 } 642 643 func (m *ProvisioningPolicy_Spec_Template) UnmarshalJSON(data []byte) error { 644 return protojson.Unmarshal(data, m) 645 } 646 647 func (m *ProvisioningPolicy_Spec_Template) GetMetadata() *meta.Meta { 648 if m != nil { 649 return m.Metadata 650 } 651 return nil 652 } 653 654 func (m *ProvisioningPolicy_Spec_Template) GetSpec() *device.Device_Spec { 655 if m != nil { 656 return m.Spec 657 } 658 return nil 659 } 660 661 func (m *ProvisioningPolicy_Spec_Template) GetPublicListingSpec() *device.Device_PublicListingSpec { 662 if m != nil { 663 return m.PublicListingSpec 664 } 665 return nil 666 } 667 668 func (m *ProvisioningPolicy_Spec_Template) SetMetadata(fv *meta.Meta) { 669 if m == nil { 670 panic(fmt.Errorf("can't set %s on nil %s", "Metadata", "ProvisioningPolicy_Spec_Template")) 671 } 672 m.Metadata = fv 673 } 674 675 func (m *ProvisioningPolicy_Spec_Template) SetSpec(fv *device.Device_Spec) { 676 if m == nil { 677 panic(fmt.Errorf("can't set %s on nil %s", "Spec", "ProvisioningPolicy_Spec_Template")) 678 } 679 m.Spec = fv 680 } 681 682 func (m *ProvisioningPolicy_Spec_Template) SetPublicListingSpec(fv *device.Device_PublicListingSpec) { 683 if m == nil { 684 panic(fmt.Errorf("can't set %s on nil %s", "PublicListingSpec", "ProvisioningPolicy_Spec_Template")) 685 } 686 m.PublicListingSpec = fv 687 } 688 689 var edgelq_devices_proto_v1_provisioning_policy_proto preflect.FileDescriptor 690 691 var edgelq_devices_proto_v1_provisioning_policy_proto_rawDesc = []byte{ 692 0x0a, 0x31, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 693 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 694 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 695 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 696 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 697 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 698 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 699 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 700 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 701 0x6f, 0x6e, 0x73, 0x2f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 702 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 703 0x6e, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 704 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 705 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 706 0x1a, 0x1f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 707 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 708 0x6f, 0x1a, 0x24, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 709 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 710 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 711 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 712 0x73, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 713 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 714 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x67, 0x6f, 0x74, 715 0x65, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x70, 0x72, 716 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 717 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 718 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 719 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x6f, 720 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 721 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 722 0x31, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfe, 723 0x0e, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 724 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2e, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 725 0x01, 0x28, 0x09, 0x42, 0x1a, 0xb2, 0xda, 0x21, 0x16, 0x0a, 0x14, 0x0a, 0x12, 0x50, 0x72, 0x6f, 726 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 727 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 728 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 729 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 730 0x64, 0x61, 0x74, 0x61, 0x12, 0x2e, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 731 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xca, 0xc6, 0x27, 0x07, 732 0x2a, 0x05, 0x22, 0x03, 0x08, 0x80, 0x02, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 733 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 734 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xca, 0xc6, 0x27, 0x07, 0x2a, 735 0x05, 0x22, 0x03, 0x08, 0x80, 0x02, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 736 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 737 0x0b, 0x32, 0x27, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 738 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 739 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 740 0x12, 0x41, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 741 0x32, 0x29, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 742 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x6f, 743 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 744 0x74, 0x75, 0x73, 0x1a, 0xb0, 0x08, 0x0a, 0x04, 0x53, 0x70, 0x65, 0x63, 0x12, 0x3b, 0x0a, 0x04, 745 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x6e, 0x74, 0x74, 746 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 747 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x4d, 748 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x50, 0x0a, 0x0f, 0x73, 0x65, 0x72, 749 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 750 0x28, 0x09, 0x42, 0x27, 0xb2, 0xda, 0x21, 0x23, 0x12, 0x21, 0x0a, 0x1d, 0x69, 0x61, 0x6d, 0x2e, 751 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x65, 0x72, 0x76, 0x69, 752 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x10, 0x01, 0x52, 0x0e, 0x73, 0x65, 0x72, 753 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x64, 754 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 755 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4e, 756 0x61, 0x6d, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x3b, 0x0a, 0x1a, 0x64, 0x65, 0x76, 757 0x69, 0x63, 0x65, 0x5f, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 758 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x64, 759 0x65, 0x76, 0x69, 0x63, 0x65, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 760 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x4b, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 761 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 762 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 763 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x2e, 764 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 765 0x65, 0x6c, 0x73, 0x12, 0x4c, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 766 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 767 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 768 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x2e, 0x54, 769 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 770 0x65, 0x12, 0x3a, 0x0a, 0x14, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x66, 0x69, 771 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x42, 772 0x08, 0xca, 0xc6, 0x27, 0x04, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x69, 0x64, 0x65, 0x6e, 0x74, 773 0x69, 0x74, 0x79, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x61, 0x74, 0x68, 0x73, 0x12, 0x3a, 0x0a, 774 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x26, 0xfa, 0x41, 0x06, 775 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0xb2, 0xda, 0x21, 0x19, 0x12, 0x17, 0x0a, 0x13, 0x69, 0x61, 776 0x6d, 0x2e, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x6f, 0x6c, 777 0x65, 0x10, 0x01, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x39, 0x0a, 0x0c, 0x73, 0x63, 0x6f, 778 0x70, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 779 0x16, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x6f, 780 0x70, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x52, 0x0b, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x50, 0x61, 781 0x72, 0x61, 0x6d, 0x73, 0x12, 0x4e, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 782 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xfa, 0x41, 0x0b, 0x0a, 0x09, 0x43, 0x6f, 783 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0xb2, 0xda, 0x21, 0x1e, 0x12, 0x1c, 0x0a, 0x18, 0x69, 784 0x61, 0x6d, 0x2e, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x6f, 785 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x01, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 786 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 787 0x6e, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 788 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 789 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 790 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x4a, 0x0a, 0x10, 0x65, 0x78, 0x74, 0x72, 791 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0c, 0x20, 0x03, 792 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 793 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 794 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 795 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 796 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 797 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 798 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 799 0xc4, 0x01, 0x0a, 0x08, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x2d, 0x0a, 0x08, 800 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 801 0x2e, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4d, 0x65, 0x74, 802 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2f, 0x0a, 0x04, 0x73, 803 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 804 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 805 0x65, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x58, 0x0a, 0x13, 806 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x73, 807 0x70, 0x65, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 808 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 809 0x65, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4c, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x53, 810 0x70, 0x65, 0x63, 0x52, 0x11, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4c, 0x69, 0x73, 0x74, 0x69, 811 0x6e, 0x67, 0x53, 0x70, 0x65, 0x63, 0x1a, 0x08, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 812 0x22, 0x41, 0x0a, 0x04, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x4d, 0x4f, 0x44, 0x45, 813 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 814 0x0a, 0x0a, 0x55, 0x4e, 0x41, 0x54, 0x54, 0x45, 0x4e, 0x44, 0x45, 0x44, 0x10, 0x01, 0x12, 0x13, 815 0x0a, 0x0f, 0x4d, 0x41, 0x4e, 0x55, 0x41, 0x4c, 0x5f, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x41, 816 0x4c, 0x10, 0x02, 0x3a, 0xa9, 0x03, 0xea, 0x41, 0x77, 0x0a, 0x25, 0x64, 0x65, 0x76, 0x69, 0x63, 817 0x65, 0x73, 0x2e, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 818 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 819 0x12, 0x4e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 820 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x72, 0x65, 821 0x67, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 822 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x76, 823 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d, 824 0x92, 0xd9, 0x21, 0x51, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 825 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x14, 0x70, 0x72, 0x6f, 0x76, 826 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 827 0x1a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x18, 0x67, 0x6f, 0x74, 0x65, 0x6e, 828 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x52, 0x65, 0x67, 829 0x69, 0x6f, 0x6e, 0x38, 0x05, 0xb2, 0xdf, 0x21, 0x8c, 0x01, 0x0a, 0x89, 0x01, 0x0a, 0x86, 0x01, 830 0x0a, 0x06, 0x62, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x33, 831 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 832 0x74, 0x7d, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2d, 0x2f, 0x70, 0x72, 0x6f, 833 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 834 0x73, 0x2f, 0x2d, 0x1a, 0x3a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 835 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 836 0x7b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 837 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2d, 0x2a, 838 0x05, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0xda, 0x94, 0x23, 0x08, 0x12, 0x06, 0x0a, 0x04, 0x6e, 0x61, 839 0x6d, 0x65, 0xc2, 0x85, 0x2c, 0x39, 0x22, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x0c, 0x64, 0x69, 840 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x04, 0x73, 0x70, 0x65, 0x63, 841 0x2a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 842 0x74, 0x61, 0x42, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 843 0xd3, 0x02, 0xe8, 0xde, 0x21, 0x01, 0xd2, 0xff, 0xd0, 0x02, 0x5c, 0x0a, 0x19, 0x70, 0x72, 0x6f, 844 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 845 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 846 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 847 0x6c, 0x71, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 848 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 849 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0xa2, 0x80, 0xd1, 0x02, 0x5e, 0x0a, 0x1a, 0x70, 0x72, 850 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 851 0x79, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x40, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 852 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 853 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x61, 0x63, 0x63, 854 0x65, 0x73, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 855 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 856 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x62, 0x2e, 0x76, 857 0x31, 0x42, 0x17, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 858 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x57, 0x67, 0x69, 859 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 860 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 861 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 862 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 863 0x79, 0x3b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 864 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 865 } 866 867 var ( 868 edgelq_devices_proto_v1_provisioning_policy_proto_rawDescOnce sync.Once 869 edgelq_devices_proto_v1_provisioning_policy_proto_rawDescData = edgelq_devices_proto_v1_provisioning_policy_proto_rawDesc 870 ) 871 872 func edgelq_devices_proto_v1_provisioning_policy_proto_rawDescGZIP() []byte { 873 edgelq_devices_proto_v1_provisioning_policy_proto_rawDescOnce.Do(func() { 874 edgelq_devices_proto_v1_provisioning_policy_proto_rawDescData = protoimpl.X.CompressGZIP(edgelq_devices_proto_v1_provisioning_policy_proto_rawDescData) 875 }) 876 return edgelq_devices_proto_v1_provisioning_policy_proto_rawDescData 877 } 878 879 var edgelq_devices_proto_v1_provisioning_policy_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 880 var edgelq_devices_proto_v1_provisioning_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 881 var edgelq_devices_proto_v1_provisioning_policy_proto_goTypes = []interface{}{ 882 (ProvisioningPolicy_Mode)(0), // 0: ntt.devices.v1.ProvisioningPolicy_Mode 883 (*ProvisioningPolicy)(nil), // 1: ntt.devices.v1.ProvisioningPolicy 884 (*ProvisioningPolicy_Spec)(nil), // 2: ntt.devices.v1.ProvisioningPolicy.Spec 885 (*ProvisioningPolicy_Status)(nil), // 3: ntt.devices.v1.ProvisioningPolicy.Status 886 nil, // 4: ntt.devices.v1.ProvisioningPolicy.Spec.LabelsEntry 887 (*ProvisioningPolicy_Spec_Template)(nil), // 5: ntt.devices.v1.ProvisioningPolicy.Spec.Template 888 (*meta.Meta)(nil), // 6: goten.types.Meta 889 (*iam_role.ScopeParam)(nil), // 7: ntt.iam.v1.ScopeParam 890 (*structpb.Struct)(nil), // 8: google.protobuf.Struct 891 (*iam_condition.ExecutableCondition)(nil), // 9: ntt.iam.v1.ExecutableCondition 892 (*device.Device_Spec)(nil), // 10: ntt.devices.v1.Device.Spec 893 (*device.Device_PublicListingSpec)(nil), // 11: ntt.devices.v1.Device.PublicListingSpec 894 } 895 var edgelq_devices_proto_v1_provisioning_policy_proto_depIdxs = []int32{ 896 6, // 0: ntt.devices.v1.ProvisioningPolicy.metadata:type_name -> goten.types.Meta 897 2, // 1: ntt.devices.v1.ProvisioningPolicy.spec:type_name -> ntt.devices.v1.ProvisioningPolicy.Spec 898 3, // 2: ntt.devices.v1.ProvisioningPolicy.status:type_name -> ntt.devices.v1.ProvisioningPolicy.Status 899 0, // 3: ntt.devices.v1.ProvisioningPolicy.Spec.mode:type_name -> ntt.devices.v1.ProvisioningPolicy_Mode 900 4, // 4: ntt.devices.v1.ProvisioningPolicy.Spec.labels:type_name -> ntt.devices.v1.ProvisioningPolicy.Spec.LabelsEntry 901 5, // 5: ntt.devices.v1.ProvisioningPolicy.Spec.template:type_name -> ntt.devices.v1.ProvisioningPolicy.Spec.Template 902 7, // 6: ntt.devices.v1.ProvisioningPolicy.Spec.scope_params:type_name -> ntt.iam.v1.ScopeParam 903 8, // 7: ntt.devices.v1.ProvisioningPolicy.Spec.condition_params:type_name -> google.protobuf.Struct 904 9, // 8: ntt.devices.v1.ProvisioningPolicy.Spec.extra_conditions:type_name -> ntt.iam.v1.ExecutableCondition 905 6, // 9: ntt.devices.v1.ProvisioningPolicy.Spec.Template.metadata:type_name -> goten.types.Meta 906 10, // 10: ntt.devices.v1.ProvisioningPolicy.Spec.Template.spec:type_name -> ntt.devices.v1.Device.Spec 907 11, // 11: ntt.devices.v1.ProvisioningPolicy.Spec.Template.public_listing_spec:type_name -> ntt.devices.v1.Device.PublicListingSpec 908 12, // [12:12] is the sub-list for method output_type 909 12, // [12:12] is the sub-list for method input_type 910 12, // [12:12] is the sub-list for extension type_name 911 12, // [12:12] is the sub-list for extension extendee 912 0, // [0:12] is the sub-list for field type_name 913 } 914 915 func init() { edgelq_devices_proto_v1_provisioning_policy_proto_init() } 916 func edgelq_devices_proto_v1_provisioning_policy_proto_init() { 917 if edgelq_devices_proto_v1_provisioning_policy_proto != nil { 918 return 919 } 920 if !protoimpl.UnsafeEnabled { 921 922 edgelq_devices_proto_v1_provisioning_policy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 923 switch v := v.(*ProvisioningPolicy); i { 924 case 0: 925 return &v.state 926 case 1: 927 return &v.sizeCache 928 case 2: 929 return &v.unknownFields 930 default: 931 return nil 932 } 933 } 934 edgelq_devices_proto_v1_provisioning_policy_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 935 switch v := v.(*ProvisioningPolicy_Spec); i { 936 case 0: 937 return &v.state 938 case 1: 939 return &v.sizeCache 940 case 2: 941 return &v.unknownFields 942 default: 943 return nil 944 } 945 } 946 edgelq_devices_proto_v1_provisioning_policy_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 947 switch v := v.(*ProvisioningPolicy_Status); i { 948 case 0: 949 return &v.state 950 case 1: 951 return &v.sizeCache 952 case 2: 953 return &v.unknownFields 954 default: 955 return nil 956 } 957 } 958 edgelq_devices_proto_v1_provisioning_policy_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 959 switch v := v.(*ProvisioningPolicy_Spec_Template); i { 960 case 0: 961 return &v.state 962 case 1: 963 return &v.sizeCache 964 case 2: 965 return &v.unknownFields 966 default: 967 return nil 968 } 969 } 970 } 971 972 type x struct{} 973 out := protoimpl.TypeBuilder{ 974 File: protoimpl.DescBuilder{ 975 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 976 RawDescriptor: edgelq_devices_proto_v1_provisioning_policy_proto_rawDesc, 977 NumEnums: 1, 978 NumMessages: 5, 979 NumExtensions: 0, 980 NumServices: 0, 981 }, 982 GoTypes: edgelq_devices_proto_v1_provisioning_policy_proto_goTypes, 983 DependencyIndexes: edgelq_devices_proto_v1_provisioning_policy_proto_depIdxs, 984 EnumInfos: edgelq_devices_proto_v1_provisioning_policy_proto_enumTypes, 985 MessageInfos: edgelq_devices_proto_v1_provisioning_policy_proto_msgTypes, 986 }.Build() 987 edgelq_devices_proto_v1_provisioning_policy_proto = out.File 988 edgelq_devices_proto_v1_provisioning_policy_proto_rawDesc = nil 989 edgelq_devices_proto_v1_provisioning_policy_proto_goTypes = nil 990 edgelq_devices_proto_v1_provisioning_policy_proto_depIdxs = nil 991 }