/// <summary>Snippet for GetVersion</summary> public void GetVersionResourceNames() { // Snippet: GetVersion(VersionName, CallSettings) // Create client VersionsClient versionsClient = VersionsClient.Create(); // Initialize request argument(s) VersionName name = VersionName.FromProjectVersion("[PROJECT]", "[VERSION]"); // Make the request gcdv::Version response = versionsClient.GetVersion(name); // End snippet }
/// <summary>Snippet for GetVersion</summary> public void GetVersion() { // Snippet: GetVersion(string, CallSettings) // Create client VersionsClient versionsClient = VersionsClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/agent/versions/[VERSION]"; // Make the request gcdv::Version response = versionsClient.GetVersion(name); // End snippet }
/// <summary>Snippet for UpdateVersion</summary> public void UpdateVersion() { // Snippet: UpdateVersion(Version, FieldMask, CallSettings) // Create client VersionsClient versionsClient = VersionsClient.Create(); // Initialize request argument(s) gcdv::Version version = new gcdv::Version(); FieldMask updateMask = new FieldMask(); // Make the request gcdv::Version response = versionsClient.UpdateVersion(version, updateMask); // End snippet }
/// <summary>Snippet for CreateVersion</summary> public void CreateVersionResourceNames() { // Snippet: CreateVersion(AgentName, Version, CallSettings) // Create client VersionsClient versionsClient = VersionsClient.Create(); // Initialize request argument(s) AgentName parent = AgentName.FromProject("[PROJECT]"); gcdv::Version version = new gcdv::Version(); // Make the request gcdv::Version response = versionsClient.CreateVersion(parent, version); // End snippet }
/// <summary>Snippet for CreateVersion</summary> public void CreateVersion() { // Snippet: CreateVersion(string, Version, CallSettings) // Create client VersionsClient versionsClient = VersionsClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]/agent"; gcdv::Version version = new gcdv::Version(); // Make the request gcdv::Version response = versionsClient.CreateVersion(parent, version); // End snippet }
/// <summary>Snippet for GetVersionAsync</summary> public async Task GetVersionResourceNamesAsync() { // Snippet: GetVersionAsync(VersionName, CallSettings) // Additional: GetVersionAsync(VersionName, CancellationToken) // Create client VersionsClient versionsClient = await VersionsClient.CreateAsync(); // Initialize request argument(s) VersionName name = VersionName.FromProjectVersion("[PROJECT]", "[VERSION]"); // Make the request gcdv::Version response = await versionsClient.GetVersionAsync(name); // End snippet }
/// <summary>Snippet for GetVersionAsync</summary> public async Task GetVersionAsync() { // Snippet: GetVersionAsync(string, CallSettings) // Additional: GetVersionAsync(string, CancellationToken) // Create client VersionsClient versionsClient = await VersionsClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/agent/versions/[VERSION]"; // Make the request gcdv::Version response = await versionsClient.GetVersionAsync(name); // End snippet }
/// <summary>Snippet for GetVersion</summary> public void GetVersionRequestObject() { // Snippet: GetVersion(GetVersionRequest, CallSettings) // Create client VersionsClient versionsClient = VersionsClient.Create(); // Initialize request argument(s) GetVersionRequest request = new GetVersionRequest { VersionName = VersionName.FromProjectVersion("[PROJECT]", "[VERSION]"), }; // Make the request gcdv::Version response = versionsClient.GetVersion(request); // End snippet }
/// <summary>Snippet for UpdateVersionAsync</summary> public async Task UpdateVersionAsync() { // Snippet: UpdateVersionAsync(Version, FieldMask, CallSettings) // Additional: UpdateVersionAsync(Version, FieldMask, CancellationToken) // Create client VersionsClient versionsClient = await VersionsClient.CreateAsync(); // Initialize request argument(s) gcdv::Version version = new gcdv::Version(); FieldMask updateMask = new FieldMask(); // Make the request gcdv::Version response = await versionsClient.UpdateVersionAsync(version, updateMask); // End snippet }
/// <summary>Snippet for UpdateVersion</summary> public void UpdateVersionRequestObject() { // Snippet: UpdateVersion(UpdateVersionRequest, CallSettings) // Create client VersionsClient versionsClient = VersionsClient.Create(); // Initialize request argument(s) UpdateVersionRequest request = new UpdateVersionRequest { Version = new gcdv::Version(), UpdateMask = new FieldMask(), }; // Make the request gcdv::Version response = versionsClient.UpdateVersion(request); // End snippet }
/// <summary>Snippet for CreateVersionAsync</summary> public async Task CreateVersionResourceNamesAsync() { // Snippet: CreateVersionAsync(AgentName, Version, CallSettings) // Additional: CreateVersionAsync(AgentName, Version, CancellationToken) // Create client VersionsClient versionsClient = await VersionsClient.CreateAsync(); // Initialize request argument(s) AgentName parent = AgentName.FromProject("[PROJECT]"); gcdv::Version version = new gcdv::Version(); // Make the request gcdv::Version response = await versionsClient.CreateVersionAsync(parent, version); // End snippet }
/// <summary>Snippet for CreateVersionAsync</summary> public async Task CreateVersionAsync() { // Snippet: CreateVersionAsync(string, Version, CallSettings) // Additional: CreateVersionAsync(string, Version, CancellationToken) // Create client VersionsClient versionsClient = await VersionsClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]/agent"; gcdv::Version version = new gcdv::Version(); // Make the request gcdv::Version response = await versionsClient.CreateVersionAsync(parent, version); // End snippet }
/// <summary>Snippet for CreateVersion</summary> public void CreateVersionRequestObject() { // Snippet: CreateVersion(CreateVersionRequest, CallSettings) // Create client VersionsClient versionsClient = VersionsClient.Create(); // Initialize request argument(s) CreateVersionRequest request = new CreateVersionRequest { ParentAsAgentName = AgentName.FromProject("[PROJECT]"), Version = new gcdv::Version(), }; // Make the request gcdv::Version response = versionsClient.CreateVersion(request); // End snippet }
/// <summary>Snippet for UpdateVersionAsync</summary> public async Task UpdateVersionRequestObjectAsync() { // Snippet: UpdateVersionAsync(UpdateVersionRequest, CallSettings) // Additional: UpdateVersionAsync(UpdateVersionRequest, CancellationToken) // Create client VersionsClient versionsClient = await VersionsClient.CreateAsync(); // Initialize request argument(s) UpdateVersionRequest request = new UpdateVersionRequest { Version = new gcdv::Version(), UpdateMask = new FieldMask(), }; // Make the request gcdv::Version response = await versionsClient.UpdateVersionAsync(request); // End snippet }
/// <summary>Snippet for CreateVersionAsync</summary> public async Task CreateVersionRequestObjectAsync() { // Snippet: CreateVersionAsync(CreateVersionRequest, CallSettings) // Additional: CreateVersionAsync(CreateVersionRequest, CancellationToken) // Create client VersionsClient versionsClient = await VersionsClient.CreateAsync(); // Initialize request argument(s) CreateVersionRequest request = new CreateVersionRequest { ParentAsAgentName = AgentName.FromProject("[PROJECT]"), Version = new gcdv::Version(), }; // Make the request gcdv::Version response = await versionsClient.CreateVersionAsync(request); // End snippet }