Skip to content

Commit

Permalink
feat: Add load balancer, log entry, org policy, database.version, exf…
Browse files Browse the repository at this point in the history
…iltration.total_exfiltrated_bytes, file.disk_path, indicator.signature_type, and kubernetes.objects to finding's list of attributes

PiperOrigin-RevId: 609614842

Source-Link: googleapis/googleapis@d2c86cf

Source-Link: googleapis/googleapis-gen@612923b
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VjdXJpdHlDZW50ZXIuVjEvLk93bEJvdC55YW1sIiwiaCI6IjYxMjkyM2JhYzRhYmVhODVlMWQ3NTYxMjRhY2VmOTkxMjMzM2Q3NTAifQ==
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Feb 23, 2024
1 parent 4c784bc commit 2e2659b
Show file tree
Hide file tree
Showing 13 changed files with 2,758 additions and 247 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ public static partial class DatabaseReflection {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Ci1nb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvZGF0YWJhc2UucHJv",
"dG8SHmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MSJiCghEYXRhYmFz",
"dG8SHmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MSJzCghEYXRhYmFz",
"ZRIMCgRuYW1lGAEgASgJEhQKDGRpc3BsYXlfbmFtZRgCIAEoCRIRCgl1c2Vy",
"X25hbWUYAyABKAkSDQoFcXVlcnkYBCABKAkSEAoIZ3JhbnRlZXMYBSADKAlC",
"5wEKImNvbS5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjFCDURhdGFi",
"YXNlUHJvdG9QAVpKY2xvdWQuZ29vZ2xlLmNvbS9nby9zZWN1cml0eWNlbnRl",
"ci9hcGl2MS9zZWN1cml0eWNlbnRlcnBiO3NlY3VyaXR5Y2VudGVycGKqAh5H",
"b29nbGUuQ2xvdWQuU2VjdXJpdHlDZW50ZXIuVjHKAh5Hb29nbGVcQ2xvdWRc",
"U2VjdXJpdHlDZW50ZXJcVjHqAiFHb29nbGU6OkNsb3VkOjpTZWN1cml0eUNl",
"bnRlcjo6VjFiBnByb3RvMw=="));
"X25hbWUYAyABKAkSDQoFcXVlcnkYBCABKAkSEAoIZ3JhbnRlZXMYBSADKAkS",
"DwoHdmVyc2lvbhgGIAEoCULnAQoiY29tLmdvb2dsZS5jbG91ZC5zZWN1cml0",
"eWNlbnRlci52MUINRGF0YWJhc2VQcm90b1ABWkpjbG91ZC5nb29nbGUuY29t",
"L2dvL3NlY3VyaXR5Y2VudGVyL2FwaXYxL3NlY3VyaXR5Y2VudGVycGI7c2Vj",
"dXJpdHljZW50ZXJwYqoCHkdvb2dsZS5DbG91ZC5TZWN1cml0eUNlbnRlci5W",
"McoCHkdvb2dsZVxDbG91ZFxTZWN1cml0eUNlbnRlclxWMeoCIUdvb2dsZTo6",
"Q2xvdWQ6OlNlY3VyaXR5Q2VudGVyOjpWMWIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Database), global::Google.Cloud.SecurityCenter.V1.Database.Parser, new[]{ "Name", "DisplayName", "UserName", "Query", "Grantees" }, null, null, null, null)
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Database), global::Google.Cloud.SecurityCenter.V1.Database.Parser, new[]{ "Name", "DisplayName", "UserName", "Query", "Grantees", "Version" }, null, null, null, null)
}));
}
#endregion
Expand All @@ -52,11 +52,6 @@ public static partial class DatabaseReflection {
/// name](https://google.aip.dev/122#full-resource-names) populated because these
/// resource types, such as Cloud SQL databases, are not yet supported by Cloud
/// Asset Inventory. In these cases only the display name is provided.
/// Some database resources may not have the [full resource
/// name](https://google.aip.dev/122#full-resource-names) populated because
/// these resource types are not yet supported by Cloud Asset Inventory (e.g.
/// Cloud SQL databases). In these cases only the display name will be
/// provided.
/// </summary>
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class Database : pb::IMessage<Database>
Expand Down Expand Up @@ -98,6 +93,7 @@ public sealed partial class Database : pb::IMessage<Database>
userName_ = other.userName_;
query_ = other.query_;
grantees_ = other.grantees_.Clone();
version_ = other.version_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

Expand All @@ -111,6 +107,11 @@ public sealed partial class Database : pb::IMessage<Database>
public const int NameFieldNumber = 1;
private string name_ = "";
/// <summary>
/// Some database resources may not have the [full resource
/// name](https://google.aip.dev/122#full-resource-names) populated because
/// these resource types are not yet supported by Cloud Asset Inventory (e.g.
/// Cloud SQL databases). In these cases only the display name will be
/// provided.
/// The [full resource name](https://google.aip.dev/122#full-resource-names) of
/// the database that the user connected to, if it is supported by Cloud Asset
/// Inventory.
Expand Down Expand Up @@ -185,6 +186,23 @@ public sealed partial class Database : pb::IMessage<Database>
get { return grantees_; }
}

/// <summary>Field number for the "version" field.</summary>
public const int VersionFieldNumber = 6;
private string version_ = "";
/// <summary>
/// The version of the database, for example, POSTGRES_14.
/// See [the complete
/// list](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Version {
get { return version_; }
set {
version_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
Expand All @@ -205,6 +223,7 @@ public sealed partial class Database : pb::IMessage<Database>
if (UserName != other.UserName) return false;
if (Query != other.Query) return false;
if(!grantees_.Equals(other.grantees_)) return false;
if (Version != other.Version) return false;
return Equals(_unknownFields, other._unknownFields);
}

Expand All @@ -217,6 +236,7 @@ public sealed partial class Database : pb::IMessage<Database>
if (UserName.Length != 0) hash ^= UserName.GetHashCode();
if (Query.Length != 0) hash ^= Query.GetHashCode();
hash ^= grantees_.GetHashCode();
if (Version.Length != 0) hash ^= Version.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
Expand Down Expand Up @@ -252,6 +272,10 @@ public sealed partial class Database : pb::IMessage<Database>
output.WriteString(Query);
}
grantees_.WriteTo(output, _repeated_grantees_codec);
if (Version.Length != 0) {
output.WriteRawTag(50);
output.WriteString(Version);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
Expand Down Expand Up @@ -279,6 +303,10 @@ public sealed partial class Database : pb::IMessage<Database>
output.WriteString(Query);
}
grantees_.WriteTo(ref output, _repeated_grantees_codec);
if (Version.Length != 0) {
output.WriteRawTag(50);
output.WriteString(Version);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
Expand All @@ -302,6 +330,9 @@ public sealed partial class Database : pb::IMessage<Database>
size += 1 + pb::CodedOutputStream.ComputeStringSize(Query);
}
size += grantees_.CalculateSize(_repeated_grantees_codec);
if (Version.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Version);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
Expand All @@ -327,6 +358,9 @@ public sealed partial class Database : pb::IMessage<Database>
Query = other.Query;
}
grantees_.Add(other.grantees_);
if (other.Version.Length != 0) {
Version = other.Version;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}

Expand Down Expand Up @@ -362,6 +396,10 @@ public sealed partial class Database : pb::IMessage<Database>
grantees_.AddEntriesFrom(input, _repeated_grantees_codec);
break;
}
case 50: {
Version = input.ReadString();
break;
}
}
}
#endif
Expand Down Expand Up @@ -397,6 +435,10 @@ public sealed partial class Database : pb::IMessage<Database>
grantees_.AddEntriesFrom(ref input, _repeated_grantees_codec);
break;
}
case 50: {
Version = input.ReadString();
break;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,22 @@ public static partial class ExfiltrationReflection {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjFnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvZXhmaWx0cmF0aW9u",
"LnByb3RvEh5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEijgEKDEV4",
"LnByb3RvEh5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEirwEKDEV4",
"ZmlsdHJhdGlvbhI+Cgdzb3VyY2VzGAEgAygLMi0uZ29vZ2xlLmNsb3VkLnNl",
"Y3VyaXR5Y2VudGVyLnYxLkV4ZmlsUmVzb3VyY2USPgoHdGFyZ2V0cxgCIAMo",
"CzItLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MS5FeGZpbFJlc291",
"cmNlIjEKDUV4ZmlsUmVzb3VyY2USDAoEbmFtZRgBIAEoCRISCgpjb21wb25l",
"bnRzGAIgAygJQusBCiJjb20uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVy",
"LnYxQhFFeGZpbHRyYXRpb25Qcm90b1ABWkpjbG91ZC5nb29nbGUuY29tL2dv",
"L3NlY3VyaXR5Y2VudGVyL2FwaXYxL3NlY3VyaXR5Y2VudGVycGI7c2VjdXJp",
"dHljZW50ZXJwYqoCHkdvb2dsZS5DbG91ZC5TZWN1cml0eUNlbnRlci5WMcoC",
"Hkdvb2dsZVxDbG91ZFxTZWN1cml0eUNlbnRlclxWMeoCIUdvb2dsZTo6Q2xv",
"dWQ6OlNlY3VyaXR5Q2VudGVyOjpWMWIGcHJvdG8z"));
"cmNlEh8KF3RvdGFsX2V4ZmlsdHJhdGVkX2J5dGVzGAMgASgDIjEKDUV4Zmls",
"UmVzb3VyY2USDAoEbmFtZRgBIAEoCRISCgpjb21wb25lbnRzGAIgAygJQusB",
"CiJjb20uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVyLnYxQhFFeGZpbHRy",
"YXRpb25Qcm90b1ABWkpjbG91ZC5nb29nbGUuY29tL2dvL3NlY3VyaXR5Y2Vu",
"dGVyL2FwaXYxL3NlY3VyaXR5Y2VudGVycGI7c2VjdXJpdHljZW50ZXJwYqoC",
"Hkdvb2dsZS5DbG91ZC5TZWN1cml0eUNlbnRlci5WMcoCHkdvb2dsZVxDbG91",
"ZFxTZWN1cml0eUNlbnRlclxWMeoCIUdvb2dsZTo6Q2xvdWQ6OlNlY3VyaXR5",
"Q2VudGVyOjpWMWIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Exfiltration), global::Google.Cloud.SecurityCenter.V1.Exfiltration.Parser, new[]{ "Sources", "Targets" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Exfiltration), global::Google.Cloud.SecurityCenter.V1.Exfiltration.Parser, new[]{ "Sources", "Targets", "TotalExfiltratedBytes" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.ExfilResource), global::Google.Cloud.SecurityCenter.V1.ExfilResource.Parser, new[]{ "Name", "Components" }, null, null, null, null)
}));
}
Expand Down Expand Up @@ -90,6 +91,7 @@ public sealed partial class Exfiltration : pb::IMessage<Exfiltration>
public Exfiltration(Exfiltration other) : this() {
sources_ = other.sources_.Clone();
targets_ = other.targets_.Clone();
totalExfiltratedBytes_ = other.totalExfiltratedBytes_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

Expand Down Expand Up @@ -130,6 +132,21 @@ public sealed partial class Exfiltration : pb::IMessage<Exfiltration>
get { return targets_; }
}

/// <summary>Field number for the "total_exfiltrated_bytes" field.</summary>
public const int TotalExfiltratedBytesFieldNumber = 3;
private long totalExfiltratedBytes_;
/// <summary>
/// Total exfiltrated bytes processed for the entire job.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long TotalExfiltratedBytes {
get { return totalExfiltratedBytes_; }
set {
totalExfiltratedBytes_ = value;
}
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
Expand All @@ -147,6 +164,7 @@ public sealed partial class Exfiltration : pb::IMessage<Exfiltration>
}
if(!sources_.Equals(other.sources_)) return false;
if(!targets_.Equals(other.targets_)) return false;
if (TotalExfiltratedBytes != other.TotalExfiltratedBytes) return false;
return Equals(_unknownFields, other._unknownFields);
}

Expand All @@ -156,6 +174,7 @@ public sealed partial class Exfiltration : pb::IMessage<Exfiltration>
int hash = 1;
hash ^= sources_.GetHashCode();
hash ^= targets_.GetHashCode();
if (TotalExfiltratedBytes != 0L) hash ^= TotalExfiltratedBytes.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
Expand All @@ -176,6 +195,10 @@ public sealed partial class Exfiltration : pb::IMessage<Exfiltration>
#else
sources_.WriteTo(output, _repeated_sources_codec);
targets_.WriteTo(output, _repeated_targets_codec);
if (TotalExfiltratedBytes != 0L) {
output.WriteRawTag(24);
output.WriteInt64(TotalExfiltratedBytes);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
Expand All @@ -188,6 +211,10 @@ public sealed partial class Exfiltration : pb::IMessage<Exfiltration>
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
sources_.WriteTo(ref output, _repeated_sources_codec);
targets_.WriteTo(ref output, _repeated_targets_codec);
if (TotalExfiltratedBytes != 0L) {
output.WriteRawTag(24);
output.WriteInt64(TotalExfiltratedBytes);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
Expand All @@ -200,6 +227,9 @@ public sealed partial class Exfiltration : pb::IMessage<Exfiltration>
int size = 0;
size += sources_.CalculateSize(_repeated_sources_codec);
size += targets_.CalculateSize(_repeated_targets_codec);
if (TotalExfiltratedBytes != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalExfiltratedBytes);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
Expand All @@ -214,6 +244,9 @@ public sealed partial class Exfiltration : pb::IMessage<Exfiltration>
}
sources_.Add(other.sources_);
targets_.Add(other.targets_);
if (other.TotalExfiltratedBytes != 0L) {
TotalExfiltratedBytes = other.TotalExfiltratedBytes;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}

Expand All @@ -237,6 +270,10 @@ public sealed partial class Exfiltration : pb::IMessage<Exfiltration>
targets_.AddEntriesFrom(input, _repeated_targets_codec);
break;
}
case 24: {
TotalExfiltratedBytes = input.ReadInt64();
break;
}
}
}
#endif
Expand All @@ -260,6 +297,10 @@ public sealed partial class Exfiltration : pb::IMessage<Exfiltration>
targets_.AddEntriesFrom(ref input, _repeated_targets_codec);
break;
}
case 24: {
TotalExfiltratedBytes = input.ReadInt64();
break;
}
}
}
}
Expand Down

0 comments on commit 2e2659b

Please sign in to comment.