Skip to content

Commit

Permalink
feat: discovery of BigQuery snapshots
Browse files Browse the repository at this point in the history
docs: documentation revisions for data profiles
PiperOrigin-RevId: 686533927

Source-Link: googleapis/googleapis@4c44b30

Source-Link: googleapis/googleapis-gen@51494a6
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuRGxwLlYyLy5Pd2xCb3QueWFtbCIsImgiOiI1MTQ5NGE2MDRlNjY1NjQwNjExOGEyOTExYmQ0ODRhYTE0MzgyZGY3In0=
  • Loading branch information
gcf-owl-bot[bot] committed Oct 16, 2024
1 parent 273b397 commit 31c952d
Show file tree
Hide file tree
Showing 377 changed files with 180,082 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// Copyright 2024 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.

// Generated code. DO NOT EDIT!

namespace GoogleCSharpSnippets
{
// [START dlp_v2_generated_DlpService_ActivateJobTrigger_async]
using Google.Cloud.Dlp.V2;
using System.Threading.Tasks;

public sealed partial class GeneratedDlpServiceClientSnippets
{
/// <summary>Snippet for ActivateJobTriggerAsync</summary>
/// <remarks>
/// This snippet has been automatically generated and should be regarded as a code template only.
/// It will require modifications to work:
/// - It may require correct/in-range values for request initialization.
/// - It may require specifying regional endpoints when creating the service client as shown in
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
/// </remarks>
public async Task ActivateJobTriggerRequestObjectAsync()
{
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
ActivateJobTriggerRequest request = new ActivateJobTriggerRequest
{
JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
};
// Make the request
DlpJob response = await dlpServiceClient.ActivateJobTriggerAsync(request);
}
}
// [END dlp_v2_generated_DlpService_ActivateJobTrigger_async]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright 2024 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.

// Generated code. DO NOT EDIT!

namespace GoogleCSharpSnippets
{
// [START dlp_v2_generated_DlpService_ActivateJobTrigger_sync]
using Google.Cloud.Dlp.V2;

public sealed partial class GeneratedDlpServiceClientSnippets
{
/// <summary>Snippet for ActivateJobTrigger</summary>
/// <remarks>
/// This snippet has been automatically generated and should be regarded as a code template only.
/// It will require modifications to work:
/// - It may require correct/in-range values for request initialization.
/// - It may require specifying regional endpoints when creating the service client as shown in
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
/// </remarks>
public void ActivateJobTriggerRequestObject()
{
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
ActivateJobTriggerRequest request = new ActivateJobTriggerRequest
{
JobTriggerName = JobTriggerName.FromProjectJobTrigger("[PROJECT]", "[JOB_TRIGGER]"),
};
// Make the request
DlpJob response = dlpServiceClient.ActivateJobTrigger(request);
}
}
// [END dlp_v2_generated_DlpService_ActivateJobTrigger_sync]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// Copyright 2024 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.

// Generated code. DO NOT EDIT!

namespace GoogleCSharpSnippets
{
// [START dlp_v2_generated_DlpService_CancelDlpJob_async]
using Google.Cloud.Dlp.V2;
using System.Threading.Tasks;

public sealed partial class GeneratedDlpServiceClientSnippets
{
/// <summary>Snippet for CancelDlpJobAsync</summary>
/// <remarks>
/// This snippet has been automatically generated and should be regarded as a code template only.
/// It will require modifications to work:
/// - It may require correct/in-range values for request initialization.
/// - It may require specifying regional endpoints when creating the service client as shown in
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
/// </remarks>
public async Task CancelDlpJobRequestObjectAsync()
{
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
CancelDlpJobRequest request = new CancelDlpJobRequest
{
DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
await dlpServiceClient.CancelDlpJobAsync(request);
}
}
// [END dlp_v2_generated_DlpService_CancelDlpJob_async]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright 2024 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.

// Generated code. DO NOT EDIT!

namespace GoogleCSharpSnippets
{
// [START dlp_v2_generated_DlpService_CancelDlpJob_sync]
using Google.Cloud.Dlp.V2;

public sealed partial class GeneratedDlpServiceClientSnippets
{
/// <summary>Snippet for CancelDlpJob</summary>
/// <remarks>
/// This snippet has been automatically generated and should be regarded as a code template only.
/// It will require modifications to work:
/// - It may require correct/in-range values for request initialization.
/// - It may require specifying regional endpoints when creating the service client as shown in
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
/// </remarks>
public void CancelDlpJobRequestObject()
{
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
CancelDlpJobRequest request = new CancelDlpJobRequest
{
DlpJobName = DlpJobName.FromProjectDlpJob("[PROJECT]", "[DLP_JOB]"),
};
// Make the request
dlpServiceClient.CancelDlpJob(request);
}
}
// [END dlp_v2_generated_DlpService_CancelDlpJob_sync]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// Copyright 2024 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.

// Generated code. DO NOT EDIT!

namespace GoogleCSharpSnippets
{
// [START dlp_v2_generated_DlpService_CreateConnection_async_flattened]
using Google.Cloud.Dlp.V2;
using System.Threading.Tasks;

public sealed partial class GeneratedDlpServiceClientSnippets
{
/// <summary>Snippet for CreateConnectionAsync</summary>
/// <remarks>
/// This snippet has been automatically generated and should be regarded as a code template only.
/// It will require modifications to work:
/// - It may require correct/in-range values for request initialization.
/// - It may require specifying regional endpoints when creating the service client as shown in
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
/// </remarks>
public async Task CreateConnectionAsync()
{
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Connection connection = new Connection();
// Make the request
Connection response = await dlpServiceClient.CreateConnectionAsync(parent, connection);
}
}
// [END dlp_v2_generated_DlpService_CreateConnection_async_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// Copyright 2024 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.

// Generated code. DO NOT EDIT!

namespace GoogleCSharpSnippets
{
// [START dlp_v2_generated_DlpService_CreateConnection_async]
using Google.Api.Gax.ResourceNames;
using Google.Cloud.Dlp.V2;
using System.Threading.Tasks;

public sealed partial class GeneratedDlpServiceClientSnippets
{
/// <summary>Snippet for CreateConnectionAsync</summary>
/// <remarks>
/// This snippet has been automatically generated and should be regarded as a code template only.
/// It will require modifications to work:
/// - It may require correct/in-range values for request initialization.
/// - It may require specifying regional endpoints when creating the service client as shown in
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
/// </remarks>
public async Task CreateConnectionRequestObjectAsync()
{
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
CreateConnectionRequest request = new CreateConnectionRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Connection = new Connection(),
};
// Make the request
Connection response = await dlpServiceClient.CreateConnectionAsync(request);
}
}
// [END dlp_v2_generated_DlpService_CreateConnection_async]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// Copyright 2024 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.

// Generated code. DO NOT EDIT!

namespace GoogleCSharpSnippets
{
// [START dlp_v2_generated_DlpService_CreateConnection_sync]
using Google.Api.Gax.ResourceNames;
using Google.Cloud.Dlp.V2;

public sealed partial class GeneratedDlpServiceClientSnippets
{
/// <summary>Snippet for CreateConnection</summary>
/// <remarks>
/// This snippet has been automatically generated and should be regarded as a code template only.
/// It will require modifications to work:
/// - It may require correct/in-range values for request initialization.
/// - It may require specifying regional endpoints when creating the service client as shown in
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
/// </remarks>
public void CreateConnectionRequestObject()
{
// Create client
DlpServiceClient dlpServiceClient = DlpServiceClient.Create();
// Initialize request argument(s)
CreateConnectionRequest request = new CreateConnectionRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Connection = new Connection(),
};
// Make the request
Connection response = dlpServiceClient.CreateConnection(request);
}
}
// [END dlp_v2_generated_DlpService_CreateConnection_sync]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright 2024 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.

// Generated code. DO NOT EDIT!

namespace GoogleCSharpSnippets
{
// [START dlp_v2_generated_DlpService_CreateConnection_async_flattened_resourceNames1]
using Google.Api.Gax.ResourceNames;
using Google.Cloud.Dlp.V2;
using System.Threading.Tasks;

public sealed partial class GeneratedDlpServiceClientSnippets
{
/// <summary>Snippet for CreateConnectionAsync</summary>
/// <remarks>
/// This snippet has been automatically generated and should be regarded as a code template only.
/// It will require modifications to work:
/// - It may require correct/in-range values for request initialization.
/// - It may require specifying regional endpoints when creating the service client as shown in
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
/// </remarks>
public async Task CreateConnectionResourceNames1Async()
{
// Create client
DlpServiceClient dlpServiceClient = await DlpServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Connection connection = new Connection();
// Make the request
Connection response = await dlpServiceClient.CreateConnectionAsync(parent, connection);
}
}
// [END dlp_v2_generated_DlpService_CreateConnection_async_flattened_resourceNames1]
}
Loading

0 comments on commit 31c952d

Please sign in to comment.