Skip to content

Commit

Permalink
feat: Add IAM support for Explore content APIs
Browse files Browse the repository at this point in the history
feat: Add support for custom container for Task
feat: Add support for cross project for Task
feat: Add support for custom encryption key to be used for encrypt data on the PDs associated with the VMs in your Dataproc cluster for Task
feat: Add support for Latest job in Task resource
feat: User mode filter in Explore list sessions API
feat: Support logging sampled file paths per partition to Cloud logging for Discovery event

PiperOrigin-RevId: 461116673

Source-Link: googleapis/googleapis@9af1b9b

Source-Link: googleapis/googleapis-gen@5671350
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuRGF0YXBsZXguVjEvLk93bEJvdC55YW1sIiwiaCI6IjU2NzEzNTA0NWI4NDAwODgwNjgxZjJlZGVmMTc3YjM2ZDU1ZGM1N2MifQ==
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Jul 15, 2022
1 parent 8a79d23 commit 0f67ba8
Show file tree
Hide file tree
Showing 31 changed files with 3,348 additions and 439 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Copyright 2022 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!

#pragma warning disable CS8981

namespace Google.Cloud.Dataplex.V1.Snippets
{
// [START dataplex_v1_generated_ContentService_GetIamPolicy_async_flattened]
using Google.Cloud.Iam.V1;
using System.Threading.Tasks;
using gcdv = Google.Cloud.Dataplex.V1;

public sealed partial class GeneratedContentServiceClientSnippets
{
/// <summary>Snippet for GetIamPolicyAsync</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public async Task GetIamPolicyAsync()
{
// Create client
ContentServiceClient contentServiceClient = await ContentServiceClient.CreateAsync();
// Initialize request argument(s)
string resource = "a/wildcard/resource";
// Make the request
Policy response = await contentServiceClient.GetIamPolicyAsync(resource);
}
}
// [END dataplex_v1_generated_ContentService_GetIamPolicy_async_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// Copyright 2022 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!

#pragma warning disable CS8981

namespace Google.Cloud.Dataplex.V1.Snippets
{
// [START dataplex_v1_generated_ContentService_GetIamPolicy_async]
using Google.Api.Gax;
using Google.Cloud.Iam.V1;
using System.Threading.Tasks;
using gcdv = Google.Cloud.Dataplex.V1;

public sealed partial class GeneratedContentServiceClientSnippets
{
/// <summary>Snippet for GetIamPolicyAsync</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public async Task GetIamPolicyRequestObjectAsync()
{
// Create client
ContentServiceClient contentServiceClient = await ContentServiceClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Options = new GetPolicyOptions(),
};
// Make the request
Policy response = await contentServiceClient.GetIamPolicyAsync(request);
}
}
// [END dataplex_v1_generated_ContentService_GetIamPolicy_async]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright 2022 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 Google.Cloud.Dataplex.V1.Snippets
{
// [START dataplex_v1_generated_ContentService_GetIamPolicy_sync]
using Google.Api.Gax;
using Google.Cloud.Dataplex.V1;
using Google.Cloud.Iam.V1;

public sealed partial class GeneratedContentServiceClientSnippets
{
/// <summary>Snippet for GetIamPolicy</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public void GetIamPolicyRequestObject()
{
// Create client
ContentServiceClient contentServiceClient = ContentServiceClient.Create();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Options = new GetPolicyOptions(),
};
// Make the request
Policy response = contentServiceClient.GetIamPolicy(request);
}
}
// [END dataplex_v1_generated_ContentService_GetIamPolicy_sync]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// Copyright 2022 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!

#pragma warning disable CS8981

namespace Google.Cloud.Dataplex.V1.Snippets
{
// [START dataplex_v1_generated_ContentService_GetIamPolicy_async_flattened_resourceNames]
using Google.Api.Gax;
using Google.Cloud.Iam.V1;
using System.Threading.Tasks;
using gcdv = Google.Cloud.Dataplex.V1;

public sealed partial class GeneratedContentServiceClientSnippets
{
/// <summary>Snippet for GetIamPolicyAsync</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public async Task GetIamPolicyResourceNamesAsync()
{
// Create client
ContentServiceClient contentServiceClient = await ContentServiceClient.CreateAsync();
// Initialize request argument(s)
IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Policy response = await contentServiceClient.GetIamPolicyAsync(resource);
}
}
// [END dataplex_v1_generated_ContentService_GetIamPolicy_async_flattened_resourceNames]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// Copyright 2022 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 Google.Cloud.Dataplex.V1.Snippets
{
// [START dataplex_v1_generated_ContentService_GetIamPolicy_sync_flattened_resourceNames]
using Google.Api.Gax;
using Google.Cloud.Dataplex.V1;
using Google.Cloud.Iam.V1;

public sealed partial class GeneratedContentServiceClientSnippets
{
/// <summary>Snippet for GetIamPolicy</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public void GetIamPolicyResourceNames()
{
// Create client
ContentServiceClient contentServiceClient = ContentServiceClient.Create();
// Initialize request argument(s)
IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Policy response = contentServiceClient.GetIamPolicy(resource);
}
}
// [END dataplex_v1_generated_ContentService_GetIamPolicy_sync_flattened_resourceNames]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Copyright 2022 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 Google.Cloud.Dataplex.V1.Snippets
{
// [START dataplex_v1_generated_ContentService_GetIamPolicy_sync_flattened]
using Google.Cloud.Dataplex.V1;
using Google.Cloud.Iam.V1;

public sealed partial class GeneratedContentServiceClientSnippets
{
/// <summary>Snippet for GetIamPolicy</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public void GetIamPolicy()
{
// Create client
ContentServiceClient contentServiceClient = ContentServiceClient.Create();
// Initialize request argument(s)
string resource = "a/wildcard/resource";
// Make the request
Policy response = contentServiceClient.GetIamPolicy(resource);
}
}
// [END dataplex_v1_generated_ContentService_GetIamPolicy_sync_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// Copyright 2022 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!

#pragma warning disable CS8981

namespace Google.Cloud.Dataplex.V1.Snippets
{
// [START dataplex_v1_generated_ContentService_SetIamPolicy_async]
using Google.Api.Gax;
using Google.Cloud.Iam.V1;
using Google.Protobuf.WellKnownTypes;
using System.Threading.Tasks;
using gcdv = Google.Cloud.Dataplex.V1;

public sealed partial class GeneratedContentServiceClientSnippets
{
/// <summary>Snippet for SetIamPolicyAsync</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public async Task SetIamPolicyRequestObjectAsync()
{
// Create client
ContentServiceClient contentServiceClient = await ContentServiceClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRequest request = new SetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Policy = new Policy(),
UpdateMask = new FieldMask(),
};
// Make the request
Policy response = await contentServiceClient.SetIamPolicyAsync(request);
}
}
// [END dataplex_v1_generated_ContentService_SetIamPolicy_async]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// Copyright 2022 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 Google.Cloud.Dataplex.V1.Snippets
{
// [START dataplex_v1_generated_ContentService_SetIamPolicy_sync]
using Google.Api.Gax;
using Google.Cloud.Dataplex.V1;
using Google.Cloud.Iam.V1;
using Google.Protobuf.WellKnownTypes;

public sealed partial class GeneratedContentServiceClientSnippets
{
/// <summary>Snippet for SetIamPolicy</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public void SetIamPolicyRequestObject()
{
// Create client
ContentServiceClient contentServiceClient = ContentServiceClient.Create();
// Initialize request argument(s)
SetIamPolicyRequest request = new SetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Policy = new Policy(),
UpdateMask = new FieldMask(),
};
// Make the request
Policy response = contentServiceClient.SetIamPolicy(request);
}
}
// [END dataplex_v1_generated_ContentService_SetIamPolicy_sync]
}
Loading

0 comments on commit 0f67ba8

Please sign in to comment.