You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

217 lines
11 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/securitycenter/v1/organization_settings.proto
  3. package securitycenter // import "google.golang.org/genproto/googleapis/cloud/securitycenter/v1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "google.golang.org/genproto/googleapis/api/annotations"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. // The mode of inclusion when running Asset Discovery.
  18. // Asset discovery can be limited by explicitly identifying projects to be
  19. // included or excluded. If INCLUDE_ONLY is set, then only those projects
  20. // within the organization and their children are discovered during asset
  21. // discovery. If EXCLUDE is set, then projects that don't match those
  22. // projects are discovered during asset discovery. If neither are set, then
  23. // all projects within the organization are discovered during asset
  24. // discovery.
  25. type OrganizationSettings_AssetDiscoveryConfig_InclusionMode int32
  26. const (
  27. // Unspecified. Setting the mode with this value will disable
  28. // inclusion/exclusion filtering for Asset Discovery.
  29. OrganizationSettings_AssetDiscoveryConfig_INCLUSION_MODE_UNSPECIFIED OrganizationSettings_AssetDiscoveryConfig_InclusionMode = 0
  30. // Asset Discovery will capture only the resources within the projects
  31. // specified. All other resources will be ignored.
  32. OrganizationSettings_AssetDiscoveryConfig_INCLUDE_ONLY OrganizationSettings_AssetDiscoveryConfig_InclusionMode = 1
  33. // Asset Discovery will ignore all resources under the projects specified.
  34. // All other resources will be retrieved.
  35. OrganizationSettings_AssetDiscoveryConfig_EXCLUDE OrganizationSettings_AssetDiscoveryConfig_InclusionMode = 2
  36. )
  37. var OrganizationSettings_AssetDiscoveryConfig_InclusionMode_name = map[int32]string{
  38. 0: "INCLUSION_MODE_UNSPECIFIED",
  39. 1: "INCLUDE_ONLY",
  40. 2: "EXCLUDE",
  41. }
  42. var OrganizationSettings_AssetDiscoveryConfig_InclusionMode_value = map[string]int32{
  43. "INCLUSION_MODE_UNSPECIFIED": 0,
  44. "INCLUDE_ONLY": 1,
  45. "EXCLUDE": 2,
  46. }
  47. func (x OrganizationSettings_AssetDiscoveryConfig_InclusionMode) String() string {
  48. return proto.EnumName(OrganizationSettings_AssetDiscoveryConfig_InclusionMode_name, int32(x))
  49. }
  50. func (OrganizationSettings_AssetDiscoveryConfig_InclusionMode) EnumDescriptor() ([]byte, []int) {
  51. return fileDescriptor_organization_settings_2992afefa3ace8c9, []int{0, 0, 0}
  52. }
  53. // User specified settings that are attached to the Cloud Security Command
  54. // Center (Cloud SCC) organization.
  55. type OrganizationSettings struct {
  56. // The relative resource name of the settings. See:
  57. // https://cloud.google.com/apis/design/resource_names#relative_resource_name
  58. // Example:
  59. // "organizations/123/organizationSettings".
  60. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  61. // A flag that indicates if Asset Discovery should be enabled. If the flag is
  62. // set to `true`, then discovery of assets will occur. If it is set to `false,
  63. // all historical assets will remain, but discovery of future assets will not
  64. // occur.
  65. EnableAssetDiscovery bool `protobuf:"varint,2,opt,name=enable_asset_discovery,json=enableAssetDiscovery,proto3" json:"enable_asset_discovery,omitempty"`
  66. // The configuration used for Asset Discovery runs.
  67. AssetDiscoveryConfig *OrganizationSettings_AssetDiscoveryConfig `protobuf:"bytes,3,opt,name=asset_discovery_config,json=assetDiscoveryConfig,proto3" json:"asset_discovery_config,omitempty"`
  68. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  69. XXX_unrecognized []byte `json:"-"`
  70. XXX_sizecache int32 `json:"-"`
  71. }
  72. func (m *OrganizationSettings) Reset() { *m = OrganizationSettings{} }
  73. func (m *OrganizationSettings) String() string { return proto.CompactTextString(m) }
  74. func (*OrganizationSettings) ProtoMessage() {}
  75. func (*OrganizationSettings) Descriptor() ([]byte, []int) {
  76. return fileDescriptor_organization_settings_2992afefa3ace8c9, []int{0}
  77. }
  78. func (m *OrganizationSettings) XXX_Unmarshal(b []byte) error {
  79. return xxx_messageInfo_OrganizationSettings.Unmarshal(m, b)
  80. }
  81. func (m *OrganizationSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  82. return xxx_messageInfo_OrganizationSettings.Marshal(b, m, deterministic)
  83. }
  84. func (dst *OrganizationSettings) XXX_Merge(src proto.Message) {
  85. xxx_messageInfo_OrganizationSettings.Merge(dst, src)
  86. }
  87. func (m *OrganizationSettings) XXX_Size() int {
  88. return xxx_messageInfo_OrganizationSettings.Size(m)
  89. }
  90. func (m *OrganizationSettings) XXX_DiscardUnknown() {
  91. xxx_messageInfo_OrganizationSettings.DiscardUnknown(m)
  92. }
  93. var xxx_messageInfo_OrganizationSettings proto.InternalMessageInfo
  94. func (m *OrganizationSettings) GetName() string {
  95. if m != nil {
  96. return m.Name
  97. }
  98. return ""
  99. }
  100. func (m *OrganizationSettings) GetEnableAssetDiscovery() bool {
  101. if m != nil {
  102. return m.EnableAssetDiscovery
  103. }
  104. return false
  105. }
  106. func (m *OrganizationSettings) GetAssetDiscoveryConfig() *OrganizationSettings_AssetDiscoveryConfig {
  107. if m != nil {
  108. return m.AssetDiscoveryConfig
  109. }
  110. return nil
  111. }
  112. // The configuration used for Asset Discovery runs.
  113. type OrganizationSettings_AssetDiscoveryConfig struct {
  114. // The project ids to use for filtering asset discovery.
  115. ProjectIds []string `protobuf:"bytes,1,rep,name=project_ids,json=projectIds,proto3" json:"project_ids,omitempty"`
  116. // The mode to use for filtering asset discovery.
  117. InclusionMode OrganizationSettings_AssetDiscoveryConfig_InclusionMode `protobuf:"varint,2,opt,name=inclusion_mode,json=inclusionMode,proto3,enum=google.cloud.securitycenter.v1.OrganizationSettings_AssetDiscoveryConfig_InclusionMode" json:"inclusion_mode,omitempty"`
  118. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  119. XXX_unrecognized []byte `json:"-"`
  120. XXX_sizecache int32 `json:"-"`
  121. }
  122. func (m *OrganizationSettings_AssetDiscoveryConfig) Reset() {
  123. *m = OrganizationSettings_AssetDiscoveryConfig{}
  124. }
  125. func (m *OrganizationSettings_AssetDiscoveryConfig) String() string { return proto.CompactTextString(m) }
  126. func (*OrganizationSettings_AssetDiscoveryConfig) ProtoMessage() {}
  127. func (*OrganizationSettings_AssetDiscoveryConfig) Descriptor() ([]byte, []int) {
  128. return fileDescriptor_organization_settings_2992afefa3ace8c9, []int{0, 0}
  129. }
  130. func (m *OrganizationSettings_AssetDiscoveryConfig) XXX_Unmarshal(b []byte) error {
  131. return xxx_messageInfo_OrganizationSettings_AssetDiscoveryConfig.Unmarshal(m, b)
  132. }
  133. func (m *OrganizationSettings_AssetDiscoveryConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  134. return xxx_messageInfo_OrganizationSettings_AssetDiscoveryConfig.Marshal(b, m, deterministic)
  135. }
  136. func (dst *OrganizationSettings_AssetDiscoveryConfig) XXX_Merge(src proto.Message) {
  137. xxx_messageInfo_OrganizationSettings_AssetDiscoveryConfig.Merge(dst, src)
  138. }
  139. func (m *OrganizationSettings_AssetDiscoveryConfig) XXX_Size() int {
  140. return xxx_messageInfo_OrganizationSettings_AssetDiscoveryConfig.Size(m)
  141. }
  142. func (m *OrganizationSettings_AssetDiscoveryConfig) XXX_DiscardUnknown() {
  143. xxx_messageInfo_OrganizationSettings_AssetDiscoveryConfig.DiscardUnknown(m)
  144. }
  145. var xxx_messageInfo_OrganizationSettings_AssetDiscoveryConfig proto.InternalMessageInfo
  146. func (m *OrganizationSettings_AssetDiscoveryConfig) GetProjectIds() []string {
  147. if m != nil {
  148. return m.ProjectIds
  149. }
  150. return nil
  151. }
  152. func (m *OrganizationSettings_AssetDiscoveryConfig) GetInclusionMode() OrganizationSettings_AssetDiscoveryConfig_InclusionMode {
  153. if m != nil {
  154. return m.InclusionMode
  155. }
  156. return OrganizationSettings_AssetDiscoveryConfig_INCLUSION_MODE_UNSPECIFIED
  157. }
  158. func init() {
  159. proto.RegisterType((*OrganizationSettings)(nil), "google.cloud.securitycenter.v1.OrganizationSettings")
  160. proto.RegisterType((*OrganizationSettings_AssetDiscoveryConfig)(nil), "google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig")
  161. proto.RegisterEnum("google.cloud.securitycenter.v1.OrganizationSettings_AssetDiscoveryConfig_InclusionMode", OrganizationSettings_AssetDiscoveryConfig_InclusionMode_name, OrganizationSettings_AssetDiscoveryConfig_InclusionMode_value)
  162. }
  163. func init() {
  164. proto.RegisterFile("google/cloud/securitycenter/v1/organization_settings.proto", fileDescriptor_organization_settings_2992afefa3ace8c9)
  165. }
  166. var fileDescriptor_organization_settings_2992afefa3ace8c9 = []byte{
  167. // 402 bytes of a gzipped FileDescriptorProto
  168. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xcf, 0x6b, 0xdb, 0x30,
  169. 0x14, 0xc7, 0xe7, 0x24, 0xed, 0x52, 0x65, 0x2d, 0x46, 0x84, 0x12, 0xc2, 0xe8, 0x4c, 0x4e, 0x3e,
  170. 0xc9, 0xb4, 0xdb, 0x69, 0x3b, 0x6d, 0xb1, 0x07, 0x2e, 0xa9, 0x5d, 0x1c, 0xca, 0x7e, 0x5c, 0x84,
  171. 0x2a, 0x6b, 0x42, 0xc3, 0xd1, 0x33, 0x96, 0x12, 0xe8, 0x0e, 0xdb, 0x71, 0x7f, 0xf2, 0xae, 0xa3,
  172. 0x8a, 0x0b, 0xf1, 0xc8, 0xb6, 0x4b, 0x6f, 0xd2, 0xf7, 0xfb, 0xbe, 0x1f, 0xbd, 0x27, 0x1e, 0x7a,
  173. 0x2d, 0x01, 0x64, 0x25, 0x22, 0x5e, 0xc1, 0xba, 0x8c, 0x8c, 0xe0, 0xeb, 0x46, 0xd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50, 0x0a, 0x37, 0xe8, 0xc9,
  185. 0xc5, 0x87, 0x47, 0x6b, 0x99, 0xa4, 0x0f, 0xfc, 0x2b, 0x28, 0x45, 0x71, 0xac, 0x76, 0xaf, 0xb3,
  186. 0x0c, 0x1d, 0x77, 0x7c, 0x7c, 0x86, 0xa6, 0x69, 0x36, 0x5f, 0xdc, 0x2c, 0xd3, 0x3c, 0xa3, 0x57,
  187. 0x79, 0x9c, 0xd0, 0x9b, 0x6c, 0x79, 0x9d, 0xcc, 0xd3, 0xf7, 0x69, 0x12, 0xfb, 0x4f, 0xb0, 0x8f,
  188. 0x9e, 0x39, 0x3f, 0x4e, 0x68, 0x9e, 0x2d, 0x3e, 0xf9, 0x1e, 0x1e, 0xa1, 0xa7, 0xc9, 0x47, 0xa7,
  189. 0xf8, 0xbd, 0xcb, 0xc1, 0x70, 0xe0, 0x1f, 0x5c, 0x0e, 0x86, 0x07, 0xfe, 0xe1, 0x3b, 0x8b, 0x66,
  190. 0x1c, 0x56, 0xff, 0x19, 0xe4, 0xda, 0xfb, 0xbc, 0x68, 0x2b, 0x24, 0x54, 0x4c, 0x4b, 0x02, 0x8d,
  191. 0x8c, 0xa4, 0xd0, 0x6e, 0x7b, 0xa2, 0xad, 0xc5, 0x6a, 0x65, 0xfe, 0xb6, 0xba, 0x6f, 0xba, 0xca,
  192. 0xed, 0xa1, 0x0b, 0xbe, 0xfc, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x98, 0xf4, 0x7f, 0x14, 0xf2, 0x02,
  193. 0x00, 0x00,
  194. }