Skip to content

Commit

Permalink
feat: Add more events
Browse files Browse the repository at this point in the history
This adds events for:

- AlloyDb
- Datastore
- GKE Hub
- Metastore
- NetworkConnectivity
- NetworkManagement
- Notebooks
- Redis
- VM Migration
- Video
- Vision AI
  • Loading branch information
jskeet committed Sep 4, 2023
1 parent f7af699 commit 067464c
Show file tree
Hide file tree
Showing 66 changed files with 123,693 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/Google.Events.Protobuf/Cloud/AlloyDb/V1/BackupEventData.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Copyright 2023, Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

namespace Google.Events.Protobuf.Cloud.AlloyDb.V1
{
[global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter<BackupEventData>))]
public partial class BackupEventData
{
/// <summary>CloudEvent type for the 'created' event.</summary>
public const string CreatedCloudEventType = "google.cloud.alloydb.backup.v1.created";

/// <summary>CloudEvent type for the 'updated' event.</summary>
public const string UpdatedCloudEventType = "google.cloud.alloydb.backup.v1.updated";

/// <summary>CloudEvent type for the 'deleted' event.</summary>
public const string DeletedCloudEventType = "google.cloud.alloydb.backup.v1.deleted";

}
}
30 changes: 30 additions & 0 deletions src/Google.Events.Protobuf/Cloud/AlloyDb/V1/ClusterEventData.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Copyright 2023, Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

namespace Google.Events.Protobuf.Cloud.AlloyDb.V1
{
[global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter<ClusterEventData>))]
public partial class ClusterEventData
{
/// <summary>CloudEvent type for the 'created' event.</summary>
public const string CreatedCloudEventType = "google.cloud.alloydb.cluster.v1.created";

/// <summary>CloudEvent type for the 'updated' event.</summary>
public const string UpdatedCloudEventType = "google.cloud.alloydb.cluster.v1.updated";

/// <summary>CloudEvent type for the 'deleted' event.</summary>
public const string DeletedCloudEventType = "google.cloud.alloydb.cluster.v1.deleted";

}
}
8,549 changes: 8,549 additions & 0 deletions src/Google.Events.Protobuf/Cloud/AlloyDb/V1/Data.g.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
// Copyright 2023, Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

using CloudNative.CloudEvents;

namespace Google.Events.Protobuf.Cloud.AlloyDb.V1
{
/// <summary>Extension attributes for Google.Events.Protobuf.Cloud.AlloyDb.V1 events.</summary>
public static class ExtensionAttributes
{
/// <summary>
/// <para>The resource ID of the Backup triggering the event.</para>
///
/// <para>This is used by the following events:</para>
///
/// <list type="bullet">
/// <item><description>google.cloud.alloydb.backup.v1.created</description></item>
/// <item><description>google.cloud.alloydb.backup.v1.updated</description></item>
/// <item><description>google.cloud.alloydb.backup.v1.deleted</description></item>
/// </list>
/// </summary>
public static CloudEventAttribute Backup { get; } = CloudEventAttribute.CreateExtension("backup", CloudEventAttributeType.String);

/// <summary>
/// <para>The resource ID of the Cluster triggering the event.</para>
///
/// <para>This is used by the following events:</para>
///
/// <list type="bullet">
/// <item><description>google.cloud.alloydb.cluster.v1.created</description></item>
/// <item><description>google.cloud.alloydb.cluster.v1.updated</description></item>
/// <item><description>google.cloud.alloydb.cluster.v1.deleted</description></item>
/// <item><description>google.cloud.alloydb.instance.v1.created</description></item>
/// <item><description>google.cloud.alloydb.instance.v1.updated</description></item>
/// <item><description>google.cloud.alloydb.instance.v1.deleted</description></item>
/// </list>
/// </summary>
public static CloudEventAttribute Cluster { get; } = CloudEventAttribute.CreateExtension("cluster", CloudEventAttributeType.String);

/// <summary>
/// <para>The resource ID of the Instance triggering the event.</para>
///
/// <para>This is used by the following events:</para>
///
/// <list type="bullet">
/// <item><description>google.cloud.alloydb.instance.v1.created</description></item>
/// <item><description>google.cloud.alloydb.instance.v1.updated</description></item>
/// <item><description>google.cloud.alloydb.instance.v1.deleted</description></item>
/// </list>
/// </summary>
public static CloudEventAttribute Instance { get; } = CloudEventAttribute.CreateExtension("instance", CloudEventAttributeType.String);

}
}
30 changes: 30 additions & 0 deletions src/Google.Events.Protobuf/Cloud/AlloyDb/V1/InstanceEventData.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Copyright 2023, Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

namespace Google.Events.Protobuf.Cloud.AlloyDb.V1
{
[global::CloudNative.CloudEvents.CloudEventFormatterAttribute(typeof(ProtobufJsonCloudEventFormatter<InstanceEventData>))]
public partial class InstanceEventData
{
/// <summary>CloudEvent type for the 'created' event.</summary>
public const string CreatedCloudEventType = "google.cloud.alloydb.instance.v1.created";

/// <summary>CloudEvent type for the 'updated' event.</summary>
public const string UpdatedCloudEventType = "google.cloud.alloydb.instance.v1.updated";

/// <summary>CloudEvent type for the 'deleted' event.</summary>
public const string DeletedCloudEventType = "google.cloud.alloydb.instance.v1.deleted";

}
}
Loading

0 comments on commit 067464c

Please sign in to comment.