-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
8ebe1f1
commit 9d2b3d8
Showing
78 changed files
with
32,095 additions
and
10,255 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
...a1.GeneratedSnippets/DataformClient.CommitRepositoryChangesRequestObjectAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
} |
55 changes: 55 additions & 0 deletions
55
...V1Beta1.GeneratedSnippets/DataformClient.CommitRepositoryChangesRequestObjectSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
} |
47 changes: 47 additions & 0 deletions
47
...dSnippets/DataformClient.ComputeRepositoryAccessTokenStatusRequestObjectAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
} |
46 changes: 46 additions & 0 deletions
46
...eratedSnippets/DataformClient.ComputeRepositoryAccessTokenStatusRequestObjectSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
} |
46 changes: 46 additions & 0 deletions
46
...ud.Dataform.V1Beta1.GeneratedSnippets/DataformClient.CreateReleaseConfigAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
} |
49 changes: 49 additions & 0 deletions
49
...1Beta1.GeneratedSnippets/DataformClient.CreateReleaseConfigRequestObjectAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
} |
48 changes: 48 additions & 0 deletions
48
...orm.V1Beta1.GeneratedSnippets/DataformClient.CreateReleaseConfigRequestObjectSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
} |
Oops, something went wrong.