Skip to content

Commit

Permalink
feat: added vm_liveness, search_api_available, network_settings, serv…
Browse files Browse the repository at this point in the history
…ice_account, build_env_variables, kms_key_reference to v1 API

Committer: @alexander-fenster
PiperOrigin-RevId: 362664085

Source-Author: Google APIs <noreply@google.com>
Source-Date: Fri Mar 12 23:11:27 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: a0d282daa691e95ec51131c81c3777fc95abf7f8
Source-Link: googleapis/googleapis@a0d282d
  • Loading branch information
yoshi-automation authored and jskeet committed Mar 14, 2021
1 parent f4173c8 commit c78b2f8
Show file tree
Hide file tree
Showing 20 changed files with 1,228 additions and 291 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void GetInstanceRequestObject()
};
Instance expectedResponse = new Instance
{
Name = "name1c9368b0",
InstanceName = InstanceName.FromAppServiceVersionInstance("[APP]", "[SERVICE]", "[VERSION]", "[INSTANCE]"),
Id = "id74b70bb8",
AppEngineRelease = "app_engine_release0d3b73e6",
Availability = Instance.Types.Availability.Unspecified,
Expand All @@ -55,6 +55,7 @@ public void GetInstanceRequestObject()
VmStatus = "vm_status3752e225",
VmDebugEnabled = false,
VmIp = "vm_ipe63c1f99",
VmLiveness = Instance.Types.Liveness.Types.LivenessState.Draining,
};
mockGrpcClient.Setup(x => x.GetInstance(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
InstancesClient client = new InstancesClientImpl(mockGrpcClient.Object, null);
Expand All @@ -74,7 +75,7 @@ public void GetInstanceRequestObject()
};
Instance expectedResponse = new Instance
{
Name = "name1c9368b0",
InstanceName = InstanceName.FromAppServiceVersionInstance("[APP]", "[SERVICE]", "[VERSION]", "[INSTANCE]"),
Id = "id74b70bb8",
AppEngineRelease = "app_engine_release0d3b73e6",
Availability = Instance.Types.Availability.Unspecified,
Expand All @@ -90,6 +91,7 @@ public void GetInstanceRequestObject()
VmStatus = "vm_status3752e225",
VmDebugEnabled = false,
VmIp = "vm_ipe63c1f99",
VmLiveness = Instance.Types.Liveness.Types.LivenessState.Draining,
};
mockGrpcClient.Setup(x => x.GetInstanceAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Instance>(stt::Task.FromResult(expectedResponse), null, null, null, null));
InstancesClient client = new InstancesClientImpl(mockGrpcClient.Object, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public void GetServiceRequestObject()
Name = "name1c9368b0",
Id = "id74b70bb8",
Split = new TrafficSplit(),
NetworkSettings = new NetworkSettings(),
};
mockGrpcClient.Setup(x => x.GetService(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
ServicesClient client = new ServicesClientImpl(mockGrpcClient.Object, null);
Expand All @@ -63,6 +64,7 @@ public void GetServiceRequestObject()
Name = "name1c9368b0",
Id = "id74b70bb8",
Split = new TrafficSplit(),
NetworkSettings = new NetworkSettings(),
};
mockGrpcClient.Setup(x => x.GetServiceAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Service>(stt::Task.FromResult(expectedResponse), null, null, null, null));
ServicesClient client = new ServicesClientImpl(mockGrpcClient.Object, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ public void GetVersionRequestObject()
Zones = { "zones3641f926", },
VpcAccessConnector = new VpcAccessConnector(),
Entrypoint = new Entrypoint(),
BuildEnvVariables =
{
{
"key8a0b6e3c",
"value60c16320"
},
},
ServiceAccount = "service_accounta3c1b923",
};
mockGrpcClient.Setup(x => x.GetVersion(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
VersionsClient client = new VersionsClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -164,6 +172,14 @@ public void GetVersionRequestObject()
Zones = { "zones3641f926", },
VpcAccessConnector = new VpcAccessConnector(),
Entrypoint = new Entrypoint(),
BuildEnvVariables =
{
{
"key8a0b6e3c",
"value60c16320"
},
},
ServiceAccount = "service_accounta3c1b923",
};
mockGrpcClient.Setup(x => x.GetVersionAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Version>(stt::Task.FromResult(expectedResponse), null, null, null, null));
VersionsClient client = new VersionsClientImpl(mockGrpcClient.Object, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// source: google/appengine/v1/appengine.proto
// </auto-generated>
// Original file comments:
// Copyright 2020 Google LLC
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ private ApplicationsSettings(ApplicationsSettings existing) : base(existing)
/// <remarks>
/// <list type="bullet">
/// <item><description>This call will not be retried.</description></item>
/// <item><description>No timeout is applied.</description></item>
/// <item><description>Timeout: 60 seconds.</description></item>
/// </list>
/// </remarks>
public gaxgrpc::CallSettings GetApplicationSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
public gaxgrpc::CallSettings GetApplicationSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000)));

/// <summary>
/// <see cref="gaxgrpc::CallSettings"/> for synchronous and asynchronous calls to
Expand All @@ -75,10 +75,10 @@ private ApplicationsSettings(ApplicationsSettings existing) : base(existing)
/// <remarks>
/// <list type="bullet">
/// <item><description>This call will not be retried.</description></item>
/// <item><description>No timeout is applied.</description></item>
/// <item><description>Timeout: 60 seconds.</description></item>
/// </list>
/// </remarks>
public gaxgrpc::CallSettings CreateApplicationSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
public gaxgrpc::CallSettings CreateApplicationSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000)));

/// <summary>
/// Long Running Operation settings for calls to <c>ApplicationsClient.CreateApplication</c> and
Expand All @@ -105,10 +105,10 @@ private ApplicationsSettings(ApplicationsSettings existing) : base(existing)
/// <remarks>
/// <list type="bullet">
/// <item><description>This call will not be retried.</description></item>
/// <item><description>No timeout is applied.</description></item>
/// <item><description>Timeout: 60 seconds.</description></item>
/// </list>
/// </remarks>
public gaxgrpc::CallSettings UpdateApplicationSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
public gaxgrpc::CallSettings UpdateApplicationSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000)));

/// <summary>
/// Long Running Operation settings for calls to <c>ApplicationsClient.UpdateApplication</c> and
Expand All @@ -135,10 +135,10 @@ private ApplicationsSettings(ApplicationsSettings existing) : base(existing)
/// <remarks>
/// <list type="bullet">
/// <item><description>This call will not be retried.</description></item>
/// <item><description>No timeout is applied.</description></item>
/// <item><description>Timeout: 60 seconds.</description></item>
/// </list>
/// </remarks>
public gaxgrpc::CallSettings RepairApplicationSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
public gaxgrpc::CallSettings RepairApplicationSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000)));

/// <summary>
/// Long Running Operation settings for calls to <c>ApplicationsClient.RepairApplication</c> and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ private AuthorizedCertificatesSettings(AuthorizedCertificatesSettings existing)
/// <remarks>
/// <list type="bullet">
/// <item><description>This call will not be retried.</description></item>
/// <item><description>No timeout is applied.</description></item>
/// <item><description>Timeout: 60 seconds.</description></item>
/// </list>
/// </remarks>
public gaxgrpc::CallSettings ListAuthorizedCertificatesSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
public gaxgrpc::CallSettings ListAuthorizedCertificatesSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000)));

/// <summary>
/// <see cref="gaxgrpc::CallSettings"/> for synchronous and asynchronous calls to
Expand All @@ -78,10 +78,10 @@ private AuthorizedCertificatesSettings(AuthorizedCertificatesSettings existing)
/// <remarks>
/// <list type="bullet">
/// <item><description>This call will not be retried.</description></item>
/// <item><description>No timeout is applied.</description></item>
/// <item><description>Timeout: 60 seconds.</description></item>
/// </list>
/// </remarks>
public gaxgrpc::CallSettings GetAuthorizedCertificateSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
public gaxgrpc::CallSettings GetAuthorizedCertificateSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000)));

/// <summary>
/// <see cref="gaxgrpc::CallSettings"/> for synchronous and asynchronous calls to
Expand All @@ -91,10 +91,10 @@ private AuthorizedCertificatesSettings(AuthorizedCertificatesSettings existing)
/// <remarks>
/// <list type="bullet">
/// <item><description>This call will not be retried.</description></item>
/// <item><description>No timeout is applied.</description></item>
/// <item><description>Timeout: 60 seconds.</description></item>
/// </list>
/// </remarks>
public gaxgrpc::CallSettings CreateAuthorizedCertificateSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
public gaxgrpc::CallSettings CreateAuthorizedCertificateSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000)));

/// <summary>
/// <see cref="gaxgrpc::CallSettings"/> for synchronous and asynchronous calls to
Expand All @@ -104,10 +104,10 @@ private AuthorizedCertificatesSettings(AuthorizedCertificatesSettings existing)
/// <remarks>
/// <list type="bullet">
/// <item><description>This call will not be retried.</description></item>
/// <item><description>No timeout is applied.</description></item>
/// <item><description>Timeout: 60 seconds.</description></item>
/// </list>
/// </remarks>
public gaxgrpc::CallSettings UpdateAuthorizedCertificateSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
public gaxgrpc::CallSettings UpdateAuthorizedCertificateSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000)));

/// <summary>
/// <see cref="gaxgrpc::CallSettings"/> for synchronous and asynchronous calls to
Expand All @@ -117,10 +117,10 @@ private AuthorizedCertificatesSettings(AuthorizedCertificatesSettings existing)
/// <remarks>
/// <list type="bullet">
/// <item><description>This call will not be retried.</description></item>
/// <item><description>No timeout is applied.</description></item>
/// <item><description>Timeout: 60 seconds.</description></item>
/// </list>
/// </remarks>
public gaxgrpc::CallSettings DeleteAuthorizedCertificateSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
public gaxgrpc::CallSettings DeleteAuthorizedCertificateSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000)));

/// <summary>Creates a deep clone of this object, with all the same property values.</summary>
/// <returns>A deep clone of this <see cref="AuthorizedCertificatesSettings"/> object.</returns>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ private AuthorizedDomainsSettings(AuthorizedDomainsSettings existing) : base(exi
/// <remarks>
/// <list type="bullet">
/// <item><description>This call will not be retried.</description></item>
/// <item><description>No timeout is applied.</description></item>
/// <item><description>Timeout: 60 seconds.</description></item>
/// </list>
/// </remarks>
public gaxgrpc::CallSettings ListAuthorizedDomainsSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
public gaxgrpc::CallSettings ListAuthorizedDomainsSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000)));

/// <summary>Creates a deep clone of this object, with all the same property values.</summary>
/// <returns>A deep clone of this <see cref="AuthorizedDomainsSettings"/> object.</returns>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ private DomainMappingsSettings(DomainMappingsSettings existing) : base(existing)
/// <remarks>
/// <list type="bullet">
/// <item><description>This call will not be retried.</description></item>
/// <item><description>No timeout is applied.</description></item>
/// <item><description>Timeout: 60 seconds.</description></item>
/// </list>
/// </remarks>
public gaxgrpc::CallSettings ListDomainMappingsSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
public gaxgrpc::CallSettings ListDomainMappingsSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000)));

/// <summary>
/// <see cref="gaxgrpc::CallSettings"/> for synchronous and asynchronous calls to
Expand All @@ -78,10 +78,10 @@ private DomainMappingsSettings(DomainMappingsSettings existing) : base(existing)
/// <remarks>
/// <list type="bullet">
/// <item><description>This call will not be retried.</description></item>
/// <item><description>No timeout is applied.</description></item>
/// <item><description>Timeout: 60 seconds.</description></item>
/// </list>
/// </remarks>
public gaxgrpc::CallSettings GetDomainMappingSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
public gaxgrpc::CallSettings GetDomainMappingSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000)));

/// <summary>
/// <see cref="gaxgrpc::CallSettings"/> for synchronous and asynchronous calls to
Expand All @@ -90,10 +90,10 @@ private DomainMappingsSettings(DomainMappingsSettings existing) : base(existing)
/// <remarks>
/// <list type="bullet">
/// <item><description>This call will not be retried.</description></item>
/// <item><description>No timeout is applied.</description></item>
/// <item><description>Timeout: 60 seconds.</description></item>
/// </list>
/// </remarks>
public gaxgrpc::CallSettings CreateDomainMappingSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
public gaxgrpc::CallSettings CreateDomainMappingSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000)));

/// <summary>
/// Long Running Operation settings for calls to <c>DomainMappingsClient.CreateDomainMapping</c> and
Expand All @@ -120,10 +120,10 @@ private DomainMappingsSettings(DomainMappingsSettings existing) : base(existing)
/// <remarks>
/// <list type="bullet">
/// <item><description>This call will not be retried.</description></item>
/// <item><description>No timeout is applied.</description></item>
/// <item><description>Timeout: 60 seconds.</description></item>
/// </list>
/// </remarks>
public gaxgrpc::CallSettings UpdateDomainMappingSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
public gaxgrpc::CallSettings UpdateDomainMappingSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000)));

/// <summary>
/// Long Running Operation settings for calls to <c>DomainMappingsClient.UpdateDomainMapping</c> and
Expand All @@ -150,10 +150,10 @@ private DomainMappingsSettings(DomainMappingsSettings existing) : base(existing)
/// <remarks>
/// <list type="bullet">
/// <item><description>This call will not be retried.</description></item>
/// <item><description>No timeout is applied.</description></item>
/// <item><description>Timeout: 60 seconds.</description></item>
/// </list>
/// </remarks>
public gaxgrpc::CallSettings DeleteDomainMappingSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None);
public gaxgrpc::CallSettings DeleteDomainMappingSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000)));

/// <summary>
/// Long Running Operation settings for calls to <c>DomainMappingsClient.DeleteDomainMapping</c> and
Expand Down

0 comments on commit c78b2f8

Please sign in to comment.