Skip to content

Commit

Permalink
feat!: replace java_outer_classname option with use_java_stubby_libra…
Browse files Browse the repository at this point in the history
…ry, add DisableServiceAccountKey and EnableServiceAccountKey, and update comments

PiperOrigin-RevId: 474647927

Source-Link: googleapis/googleapis@a0a740c

Source-Link: googleapis/googleapis-gen@5849ad1
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuSWFtLkFkbWluLlYxLy5Pd2xCb3QueWFtbCIsImgiOiI1ODQ5YWQxMTBmMjVlZWYxZTA4ZGFmMjliZDVhODFmMTFmYjY1NDI0In0=
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Sep 16, 2022
1 parent 3595646 commit b0321c8
Show file tree
Hide file tree
Showing 20 changed files with 2,762 additions and 454 deletions.
@@ -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.Iam.Admin.V1.Snippets
{
// [START iam_v1_generated_IAM_DisableServiceAccountKey_async_flattened]
using Google.Cloud.Iam.Admin.V1;
using System.Threading.Tasks;

public sealed partial class GeneratedIAMClientSnippets
{
/// <summary>Snippet for DisableServiceAccountKeyAsync</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 DisableServiceAccountKeyAsync()
{
// Create client
IAMClient iAMClient = await IAMClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/serviceAccounts/[SERVICE_ACCOUNT]/keys/[KEY]";
// Make the request
await iAMClient.DisableServiceAccountKeyAsync(name);
}
}
// [END iam_v1_generated_IAM_DisableServiceAccountKey_async_flattened]
}
@@ -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!

namespace Google.Cloud.Iam.Admin.V1.Snippets
{
// [START iam_v1_generated_IAM_DisableServiceAccountKey_async]
using Google.Cloud.Iam.Admin.V1;
using System.Threading.Tasks;

public sealed partial class GeneratedIAMClientSnippets
{
/// <summary>Snippet for DisableServiceAccountKeyAsync</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 DisableServiceAccountKeyRequestObjectAsync()
{
// Create client
IAMClient iAMClient = await IAMClient.CreateAsync();
// Initialize request argument(s)
DisableServiceAccountKeyRequest request = new DisableServiceAccountKeyRequest
{
KeyName = KeyName.FromProjectServiceAccountKey("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]"),
};
// Make the request
await iAMClient.DisableServiceAccountKeyAsync(request);
}
}
// [END iam_v1_generated_IAM_DisableServiceAccountKey_async]
}
@@ -0,0 +1,43 @@
// 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.Iam.Admin.V1.Snippets
{
// [START iam_v1_generated_IAM_DisableServiceAccountKey_sync]
using Google.Cloud.Iam.Admin.V1;

public sealed partial class GeneratedIAMClientSnippets
{
/// <summary>Snippet for DisableServiceAccountKey</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public void DisableServiceAccountKeyRequestObject()
{
// Create client
IAMClient iAMClient = IAMClient.Create();
// Initialize request argument(s)
DisableServiceAccountKeyRequest request = new DisableServiceAccountKeyRequest
{
KeyName = KeyName.FromProjectServiceAccountKey("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]"),
};
// Make the request
iAMClient.DisableServiceAccountKey(request);
}
}
// [END iam_v1_generated_IAM_DisableServiceAccountKey_sync]
}
@@ -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.Iam.Admin.V1.Snippets
{
// [START iam_v1_generated_IAM_DisableServiceAccountKey_async_flattened_resourceNames]
using Google.Cloud.Iam.Admin.V1;
using System.Threading.Tasks;

public sealed partial class GeneratedIAMClientSnippets
{
/// <summary>Snippet for DisableServiceAccountKeyAsync</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 DisableServiceAccountKeyResourceNamesAsync()
{
// Create client
IAMClient iAMClient = await IAMClient.CreateAsync();
// Initialize request argument(s)
KeyName name = KeyName.FromProjectServiceAccountKey("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]");
// Make the request
await iAMClient.DisableServiceAccountKeyAsync(name);
}
}
// [END iam_v1_generated_IAM_DisableServiceAccountKey_async_flattened_resourceNames]
}
@@ -0,0 +1,40 @@
// 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.Iam.Admin.V1.Snippets
{
// [START iam_v1_generated_IAM_DisableServiceAccountKey_sync_flattened_resourceNames]
using Google.Cloud.Iam.Admin.V1;

public sealed partial class GeneratedIAMClientSnippets
{
/// <summary>Snippet for DisableServiceAccountKey</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public void DisableServiceAccountKeyResourceNames()
{
// Create client
IAMClient iAMClient = IAMClient.Create();
// Initialize request argument(s)
KeyName name = KeyName.FromProjectServiceAccountKey("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]");
// Make the request
iAMClient.DisableServiceAccountKey(name);
}
}
// [END iam_v1_generated_IAM_DisableServiceAccountKey_sync_flattened_resourceNames]
}
@@ -0,0 +1,40 @@
// 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.Iam.Admin.V1.Snippets
{
// [START iam_v1_generated_IAM_DisableServiceAccountKey_sync_flattened]
using Google.Cloud.Iam.Admin.V1;

public sealed partial class GeneratedIAMClientSnippets
{
/// <summary>Snippet for DisableServiceAccountKey</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public void DisableServiceAccountKey()
{
// Create client
IAMClient iAMClient = IAMClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/serviceAccounts/[SERVICE_ACCOUNT]/keys/[KEY]";
// Make the request
iAMClient.DisableServiceAccountKey(name);
}
}
// [END iam_v1_generated_IAM_DisableServiceAccountKey_sync_flattened]
}
@@ -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.Iam.Admin.V1.Snippets
{
// [START iam_v1_generated_IAM_EnableServiceAccountKey_async_flattened]
using Google.Cloud.Iam.Admin.V1;
using System.Threading.Tasks;

public sealed partial class GeneratedIAMClientSnippets
{
/// <summary>Snippet for EnableServiceAccountKeyAsync</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 EnableServiceAccountKeyAsync()
{
// Create client
IAMClient iAMClient = await IAMClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/serviceAccounts/[SERVICE_ACCOUNT]/keys/[KEY]";
// Make the request
await iAMClient.EnableServiceAccountKeyAsync(name);
}
}
// [END iam_v1_generated_IAM_EnableServiceAccountKey_async_flattened]
}
@@ -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!

namespace Google.Cloud.Iam.Admin.V1.Snippets
{
// [START iam_v1_generated_IAM_EnableServiceAccountKey_async]
using Google.Cloud.Iam.Admin.V1;
using System.Threading.Tasks;

public sealed partial class GeneratedIAMClientSnippets
{
/// <summary>Snippet for EnableServiceAccountKeyAsync</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 EnableServiceAccountKeyRequestObjectAsync()
{
// Create client
IAMClient iAMClient = await IAMClient.CreateAsync();
// Initialize request argument(s)
EnableServiceAccountKeyRequest request = new EnableServiceAccountKeyRequest
{
KeyName = KeyName.FromProjectServiceAccountKey("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]"),
};
// Make the request
await iAMClient.EnableServiceAccountKeyAsync(request);
}
}
// [END iam_v1_generated_IAM_EnableServiceAccountKey_async]
}
@@ -0,0 +1,43 @@
// 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.Iam.Admin.V1.Snippets
{
// [START iam_v1_generated_IAM_EnableServiceAccountKey_sync]
using Google.Cloud.Iam.Admin.V1;

public sealed partial class GeneratedIAMClientSnippets
{
/// <summary>Snippet for EnableServiceAccountKey</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public void EnableServiceAccountKeyRequestObject()
{
// Create client
IAMClient iAMClient = IAMClient.Create();
// Initialize request argument(s)
EnableServiceAccountKeyRequest request = new EnableServiceAccountKeyRequest
{
KeyName = KeyName.FromProjectServiceAccountKey("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]"),
};
// Make the request
iAMClient.EnableServiceAccountKey(request);
}
}
// [END iam_v1_generated_IAM_EnableServiceAccountKey_sync]
}

0 comments on commit b0321c8

Please sign in to comment.