Skip to content

Commit

Permalink
fix!: Fix the version casing in the C# namespace option BREAKING CHAN…
Browse files Browse the repository at this point in the history
…GE: This would break any C# code already generated, but this file is very new, so is unlikely to break anyone.

PiperOrigin-RevId: 315933871

Source-Author: Google APIs <noreply@google.com>
Source-Date: Thu Jun 11 10:56:35 2020 -0700
Source-Repo: googleapis/googleapis
Source-Sha: b789f790565ad7cc473571b0cf35dfbe6707f6a8
Source-Link: googleapis/googleapis@b789f79
  • Loading branch information
yoshi-automation authored and jskeet committed Jun 11, 2020
1 parent 5b07f5a commit b6d323c
Show file tree
Hide file tree
Showing 13 changed files with 743 additions and 498 deletions.
Expand Up @@ -891,7 +891,6 @@ public void GroupAssetsRequestObject()
GroupBy = "",
CompareDuration = new Duration(),
ReadTime = new Timestamp(),
Having = "",
};
// Make the request
PagedEnumerable<GroupAssetsResponse, GroupResult> response = securityCenterClient.GroupAssets(request);
Expand Down Expand Up @@ -944,7 +943,6 @@ public async Task GroupAssetsRequestObjectAsync()
GroupBy = "",
CompareDuration = new Duration(),
ReadTime = new Timestamp(),
Having = "",
};
// Make the request
PagedAsyncEnumerable<GroupAssetsResponse, GroupResult> response = securityCenterClient.GroupAssetsAsync(request);
Expand Down Expand Up @@ -997,7 +995,6 @@ public void GroupFindingsRequestObject()
GroupBy = "",
ReadTime = new Timestamp(),
CompareDuration = new Duration(),
Having = "",
};
// Make the request
PagedEnumerable<GroupFindingsResponse, GroupResult> response = securityCenterClient.GroupFindings(request);
Expand Down Expand Up @@ -1050,7 +1047,6 @@ public async Task GroupFindingsRequestObjectAsync()
GroupBy = "",
ReadTime = new Timestamp(),
CompareDuration = new Duration(),
Having = "",
};
// Make the request
PagedAsyncEnumerable<GroupFindingsResponse, GroupResult> response = securityCenterClient.GroupFindingsAsync(request);
Expand Down Expand Up @@ -1287,7 +1283,6 @@ public void ListAssetsRequestObject()
OrderBy = "",
ReadTime = new Timestamp(),
CompareDuration = new Duration(),
Having = "",
FieldMask = new FieldMask(),
};
// Make the request
Expand Down Expand Up @@ -1341,7 +1336,6 @@ public async Task ListAssetsRequestObjectAsync()
OrderBy = "",
ReadTime = new Timestamp(),
CompareDuration = new Duration(),
Having = "",
FieldMask = new FieldMask(),
};
// Make the request
Expand Down Expand Up @@ -1575,7 +1569,6 @@ public void ListFindingsRequestObject()
OrderBy = "",
ReadTime = new Timestamp(),
CompareDuration = new Duration(),
Having = "",
FieldMask = new FieldMask(),
};
// Make the request
Expand Down Expand Up @@ -1629,7 +1622,6 @@ public async Task ListFindingsRequestObjectAsync()
OrderBy = "",
ReadTime = new Timestamp(),
CompareDuration = new Duration(),
Having = "",
FieldMask = new FieldMask(),
};
// Make the request
Expand Down
Expand Up @@ -70,12 +70,13 @@ public static partial class AssetReflection {
}
#region Messages
/// <summary>
/// Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
/// Platform (GCP) resource.
/// Security Command Center representation of a Google Cloud
/// resource.
///
/// The Asset is a Cloud SCC resource that captures information about a single
/// GCP resource. All modifications to an Asset are only within the context of
/// Cloud SCC and don't affect the referenced GCP resource.
/// The Asset is a Security Command Center resource that captures information
/// about a single Google Cloud resource. All modifications to an Asset are only
/// within the context of Security Command Center and don't affect the referenced
/// Google Cloud resource.
/// </summary>
public sealed partial class Asset : pb::IMessage<Asset> {
private static readonly pb::MessageParser<Asset> _parser = new pb::MessageParser<Asset>(() => new Asset());
Expand Down Expand Up @@ -138,8 +139,8 @@ public sealed partial class Asset : pb::IMessage<Asset> {
public const int SecurityCenterPropertiesFieldNumber = 2;
private global::Google.Cloud.SecurityCenter.V1P1Beta1.Asset.Types.SecurityCenterProperties securityCenterProperties_;
/// <summary>
/// Cloud SCC managed properties. These properties are managed by
/// Cloud SCC and cannot be modified by the user.
/// Security Command Center managed properties. These properties are managed by
/// Security Command Center and cannot be modified by the user.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Cloud.SecurityCenter.V1P1Beta1.Asset.Types.SecurityCenterProperties SecurityCenterProperties {
Expand All @@ -156,7 +157,7 @@ public sealed partial class Asset : pb::IMessage<Asset> {
private readonly pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value> resourceProperties_ = new pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value>();
/// <summary>
/// Resource managed properties. These properties are managed and defined by
/// the GCP resource and cannot be modified by the user.
/// the Google Cloud resource and cannot be modified by the user.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value> ResourceProperties {
Expand All @@ -182,7 +183,7 @@ public sealed partial class Asset : pb::IMessage<Asset> {
public const int CreateTimeFieldNumber = 9;
private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_;
/// <summary>
/// The time at which the asset was created in Cloud SCC.
/// The time at which the asset was created in Security Command Center.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime {
Expand Down Expand Up @@ -211,9 +212,10 @@ public sealed partial class Asset : pb::IMessage<Asset> {
public const int IamPolicyFieldNumber = 11;
private global::Google.Cloud.SecurityCenter.V1P1Beta1.Asset.Types.IamPolicy iamPolicy_;
/// <summary>
/// IAM Policy information associated with the GCP resource described by the
/// Cloud SCC asset. This information is managed and defined by the GCP
/// resource and cannot be modified by the user.
/// Cloud IAM Policy information associated with the Google Cloud resource
/// described by the Security Command Center asset. This information is managed
/// and defined by the Google Cloud resource and cannot be modified by the
/// user.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Cloud.SecurityCenter.V1P1Beta1.Asset.Types.IamPolicy IamPolicy {
Expand Down Expand Up @@ -429,8 +431,8 @@ public sealed partial class Asset : pb::IMessage<Asset> {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static partial class Types {
/// <summary>
/// Cloud SCC managed properties. These properties are managed by Cloud SCC and
/// cannot be modified by the user.
/// Security Command Center managed properties. These properties are managed by
/// Security Command Center and cannot be modified by the user.
/// </summary>
public sealed partial class SecurityCenterProperties : pb::IMessage<SecurityCenterProperties> {
private static readonly pb::MessageParser<SecurityCenterProperties> _parser = new pb::MessageParser<SecurityCenterProperties>(() => new SecurityCenterProperties());
Expand Down Expand Up @@ -477,7 +479,7 @@ public sealed partial class SecurityCenterProperties : pb::IMessage<SecurityCent
public const int ResourceNameFieldNumber = 1;
private string resourceName_ = "";
/// <summary>
/// The full resource name of the GCP resource this asset
/// The full resource name of the Google Cloud resource this asset
/// represents. This field is immutable after create time. See:
/// https://cloud.google.com/apis/design/resource_names#full_resource_name
/// </summary>
Expand All @@ -493,10 +495,10 @@ public sealed partial class SecurityCenterProperties : pb::IMessage<SecurityCent
public const int ResourceTypeFieldNumber = 2;
private string resourceType_ = "";
/// <summary>
/// The type of the GCP resource. Examples include: APPLICATION,
/// The type of the Google Cloud resource. Examples include: APPLICATION,
/// PROJECT, and ORGANIZATION. This is a case insensitive field defined by
/// Cloud SCC and/or the producer of the resource and is immutable
/// after create time.
/// Security Command Center and/or the producer of the resource and is
/// immutable after create time.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string ResourceType {
Expand Down Expand Up @@ -781,9 +783,10 @@ public sealed partial class SecurityCenterProperties : pb::IMessage<SecurityCent
}

/// <summary>
/// IAM Policy information associated with the GCP resource described by the
/// Cloud SCC asset. This information is managed and defined by the GCP
/// resource and cannot be modified by the user.
/// Cloud IAM Policy information associated with the Google Cloud resource
/// described by the Security Command Center asset. This information is managed
/// and defined by the Google Cloud resource and cannot be modified by the
/// user.
/// </summary>
public sealed partial class IamPolicy : pb::IMessage<IamPolicy> {
private static readonly pb::MessageParser<IamPolicy> _parser = new pb::MessageParser<IamPolicy>(() => new IamPolicy());
Expand Down Expand Up @@ -824,7 +827,7 @@ public sealed partial class IamPolicy : pb::IMessage<IamPolicy> {
private string policyBlob_ = "";
/// <summary>
/// The JSON representation of the Policy associated with the asset.
/// See https://cloud.google.com/iam/reference/rest/v1/Policy for
/// See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
/// format details.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Expand Down
Expand Up @@ -64,12 +64,12 @@ public static partial class FindingReflection {
}
#region Messages
/// <summary>
/// Cloud Security Command Center (Cloud SCC) finding.
/// Security Command Center finding.
///
/// A finding is a record of assessment data (security, risk, health or privacy)
/// ingested into Cloud SCC for presentation, notification, analysis,
/// policy testing, and enforcement. For example, an XSS vulnerability in an
/// App Engine application is a finding.
/// ingested into Security Command Center for presentation, notification,
/// analysis, policy testing, and enforcement. For example, an XSS vulnerability
/// in an App Engine application is a finding.
/// </summary>
public sealed partial class Finding : pb::IMessage<Finding> {
private static readonly pb::MessageParser<Finding> _parser = new pb::MessageParser<Finding>(() => new Finding());
Expand Down Expand Up @@ -153,12 +153,12 @@ public sealed partial class Finding : pb::IMessage<Finding> {
public const int ResourceNameFieldNumber = 3;
private string resourceName_ = "";
/// <summary>
/// For findings on Google Cloud Platform (GCP) resources, the full resource
/// name of the GCP resource this finding is for. See:
/// For findings on Google Cloud resources, the full resource
/// name of the Google Cloud resource this finding is for. See:
/// https://cloud.google.com/apis/design/resource_names#full_resource_name
/// When the finding is for a non-GCP resource, the resourceName can be a
/// customer or partner defined string.
/// This field is immutable after creation time.
/// When the finding is for a non-Google Cloud resource, the resourceName can
/// be a customer or partner defined string. This field is immutable after
/// creation time.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string ResourceName {
Expand Down Expand Up @@ -202,9 +202,9 @@ public sealed partial class Finding : pb::IMessage<Finding> {
public const int ExternalUriFieldNumber = 6;
private string externalUri_ = "";
/// <summary>
/// The URI that, if available, points to a web page outside of Cloud SCC
/// where additional information about the finding can be found. This field is
/// guaranteed to be either empty or a well formed URL.
/// The URI that, if available, points to a web page outside of Security
/// Command Center where additional information about the finding can be found.
/// This field is guaranteed to be either empty or a well formed URL.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string ExternalUri {
Expand Down Expand Up @@ -266,7 +266,7 @@ public sealed partial class Finding : pb::IMessage<Finding> {
public const int CreateTimeFieldNumber = 10;
private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_;
/// <summary>
/// The time at which the finding was created in Cloud SCC.
/// The time at which the finding was created in Security Command Center.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime {
Expand Down
Expand Up @@ -60,10 +60,11 @@ public static partial class NotificationConfigReflection {
}
#region Messages
/// <summary>
/// Cloud Security Command Center (Cloud SCC) notification configs.
/// Security Command Center notification configs.
///
/// A notification config is a Cloud SCC resource that contains the configuration
/// to send notifications for create/update events of findings, assets and etc.
/// A notification config is a Security Command Center resource that contains the
/// configuration to send notifications for create/update events of findings,
/// assets and etc.
/// </summary>
public sealed partial class NotificationConfig : pb::IMessage<NotificationConfig> {
private static readonly pb::MessageParser<NotificationConfig> _parser = new pb::MessageParser<NotificationConfig>(() => new NotificationConfig());
Expand Down Expand Up @@ -158,7 +159,7 @@ public sealed partial class NotificationConfig : pb::IMessage<NotificationConfig
public const int PubsubTopicFieldNumber = 4;
private string pubsubTopic_ = "";
/// <summary>
/// The PubSub topic to send notifications to. Its format is
/// The Pub/Sub topic to send notifications to. Its format is
/// "projects/[project_id]/topics/[topic]".
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Expand All @@ -174,7 +175,7 @@ public sealed partial class NotificationConfig : pb::IMessage<NotificationConfig
private string serviceAccount_ = "";
/// <summary>
/// Output only. The service account that needs "pubsub.topics.publish"
/// permission to publish to the PubSub topic.
/// permission to publish to the Pub/Sub topic.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string ServiceAccount {
Expand Down

0 comments on commit b6d323c

Please sign in to comment.