Skip to content

Commit

Permalink
feat: Support for ReleaseConfigs
Browse files Browse the repository at this point in the history
feat: Support for WorkflowConfigs
feat: Support new first-party repository methods for committing, listing/reading files, and fetching history
feat: Support new ComputeRepositoryAccessTokenStatus repository method
feat: Support SSH based git authentication configuration
feat: Support workspace compilation override fields
feat: Support NPMRC environment variables
feat: Support labels on repositories
feat: Support custom service account repository configuration
docs: several comments reformatted
fix: rearrange several messages, thus changing field types

PiperOrigin-RevId: 576787262

Source-Link: googleapis/googleapis@7e7ae1a

Source-Link: googleapis/googleapis-gen@b145f1c
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuRGF0YWZvcm0uVjFCZXRhMS8uT3dsQm90LnlhbWwiLCJoIjoiYjE0NWYxYzY5YTFkMzYxOGE2ZGRkZGEzNjE4OGRmZTlkOTllZWI0MyJ9
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Oct 26, 2023
1 parent 8ebe1f1 commit 9d2b3d8
Show file tree
Hide file tree
Showing 78 changed files with 32,095 additions and 10,255 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
// 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.

// Generated code. DO NOT EDIT!

namespace GoogleCSharpSnippets
{
// [START dataform_v1beta1_generated_Dataform_CommitRepositoryChanges_async]
using Google.Cloud.Dataform.V1Beta1;
using System.Threading.Tasks;

public sealed partial class GeneratedDataformClientSnippets
{
/// <summary>Snippet for CommitRepositoryChangesAsync</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 CommitRepositoryChangesRequestObjectAsync()
{
// Create client
DataformClient dataformClient = await DataformClient.CreateAsync();
// Initialize request argument(s)
CommitRepositoryChangesRequest request = new CommitRepositoryChangesRequest
{
RepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
CommitMetadata = new CommitMetadata(),
FileOperations =
{
{
"",
new CommitRepositoryChangesRequest.Types.FileOperation()
},
},
RequiredHeadCommitSha = "",
};
// Make the request
await dataformClient.CommitRepositoryChangesAsync(request);
}
}
// [END dataform_v1beta1_generated_Dataform_CommitRepositoryChanges_async]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// 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.

// Generated code. DO NOT EDIT!

namespace GoogleCSharpSnippets
{
// [START dataform_v1beta1_generated_Dataform_CommitRepositoryChanges_sync]
using Google.Cloud.Dataform.V1Beta1;

public sealed partial class GeneratedDataformClientSnippets
{
/// <summary>Snippet for CommitRepositoryChanges</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 CommitRepositoryChangesRequestObject()
{
// Create client
DataformClient dataformClient = DataformClient.Create();
// Initialize request argument(s)
CommitRepositoryChangesRequest request = new CommitRepositoryChangesRequest
{
RepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
CommitMetadata = new CommitMetadata(),
FileOperations =
{
{
"",
new CommitRepositoryChangesRequest.Types.FileOperation()
},
},
RequiredHeadCommitSha = "",
};
// Make the request
dataformClient.CommitRepositoryChanges(request);
}
}
// [END dataform_v1beta1_generated_Dataform_CommitRepositoryChanges_sync]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// 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.

// Generated code. DO NOT EDIT!

namespace GoogleCSharpSnippets
{
// [START dataform_v1beta1_generated_Dataform_ComputeRepositoryAccessTokenStatus_async]
using Google.Cloud.Dataform.V1Beta1;
using System.Threading.Tasks;

public sealed partial class GeneratedDataformClientSnippets
{
/// <summary>Snippet for ComputeRepositoryAccessTokenStatusAsync</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 ComputeRepositoryAccessTokenStatusRequestObjectAsync()
{
// Create client
DataformClient dataformClient = await DataformClient.CreateAsync();
// Initialize request argument(s)
ComputeRepositoryAccessTokenStatusRequest request = new ComputeRepositoryAccessTokenStatusRequest
{
RepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
};
// Make the request
ComputeRepositoryAccessTokenStatusResponse response = await dataformClient.ComputeRepositoryAccessTokenStatusAsync(request);
}
}
// [END dataform_v1beta1_generated_Dataform_ComputeRepositoryAccessTokenStatus_async]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// 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.

// Generated code. DO NOT EDIT!

namespace GoogleCSharpSnippets
{
// [START dataform_v1beta1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync]
using Google.Cloud.Dataform.V1Beta1;

public sealed partial class GeneratedDataformClientSnippets
{
/// <summary>Snippet for ComputeRepositoryAccessTokenStatus</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 ComputeRepositoryAccessTokenStatusRequestObject()
{
// Create client
DataformClient dataformClient = DataformClient.Create();
// Initialize request argument(s)
ComputeRepositoryAccessTokenStatusRequest request = new ComputeRepositoryAccessTokenStatusRequest
{
RepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
};
// Make the request
ComputeRepositoryAccessTokenStatusResponse response = dataformClient.ComputeRepositoryAccessTokenStatus(request);
}
}
// [END dataform_v1beta1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// 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.

// Generated code. DO NOT EDIT!

namespace GoogleCSharpSnippets
{
// [START dataform_v1beta1_generated_Dataform_CreateReleaseConfig_async_flattened]
using Google.Cloud.Dataform.V1Beta1;
using System.Threading.Tasks;

public sealed partial class GeneratedDataformClientSnippets
{
/// <summary>Snippet for CreateReleaseConfigAsync</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 CreateReleaseConfigAsync()
{
// Create client
DataformClient dataformClient = await DataformClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
ReleaseConfig releaseConfig = new ReleaseConfig();
string releaseConfigId = "";
// Make the request
ReleaseConfig response = await dataformClient.CreateReleaseConfigAsync(parent, releaseConfig, releaseConfigId);
}
}
// [END dataform_v1beta1_generated_Dataform_CreateReleaseConfig_async_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// 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.

// Generated code. DO NOT EDIT!

namespace GoogleCSharpSnippets
{
// [START dataform_v1beta1_generated_Dataform_CreateReleaseConfig_async]
using Google.Cloud.Dataform.V1Beta1;
using System.Threading.Tasks;

public sealed partial class GeneratedDataformClientSnippets
{
/// <summary>Snippet for CreateReleaseConfigAsync</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 CreateReleaseConfigRequestObjectAsync()
{
// Create client
DataformClient dataformClient = await DataformClient.CreateAsync();
// Initialize request argument(s)
CreateReleaseConfigRequest request = new CreateReleaseConfigRequest
{
ParentAsRepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
ReleaseConfig = new ReleaseConfig(),
ReleaseConfigId = "",
};
// Make the request
ReleaseConfig response = await dataformClient.CreateReleaseConfigAsync(request);
}
}
// [END dataform_v1beta1_generated_Dataform_CreateReleaseConfig_async]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// 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.

// Generated code. DO NOT EDIT!

namespace GoogleCSharpSnippets
{
// [START dataform_v1beta1_generated_Dataform_CreateReleaseConfig_sync]
using Google.Cloud.Dataform.V1Beta1;

public sealed partial class GeneratedDataformClientSnippets
{
/// <summary>Snippet for CreateReleaseConfig</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 CreateReleaseConfigRequestObject()
{
// Create client
DataformClient dataformClient = DataformClient.Create();
// Initialize request argument(s)
CreateReleaseConfigRequest request = new CreateReleaseConfigRequest
{
ParentAsRepositoryName = RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
ReleaseConfig = new ReleaseConfig(),
ReleaseConfigId = "",
};
// Make the request
ReleaseConfig response = dataformClient.CreateReleaseConfig(request);
}
}
// [END dataform_v1beta1_generated_Dataform_CreateReleaseConfig_sync]
}
Loading

0 comments on commit 9d2b3d8

Please sign in to comment.