Skip to content

Commit

Permalink
feat: Adding two new fields for Instance create_time and update_time
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 458877561

Source-Link: googleapis/googleapis@207bf59

Source-Link: googleapis/googleapis-gen@5ede6e4
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU3Bhbm5lci5BZG1pbi5JbnN0YW5jZS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiNWVkZTZlNGZiYzE0ZDc2ZjlhNmY0ODE1MmExNmQ4MTQxZDhhZmY1MiJ9
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Jul 4, 2022
1 parent f4b138c commit d002223
Show file tree
Hide file tree
Showing 4 changed files with 236 additions and 118 deletions.
Expand Up @@ -224,6 +224,8 @@ public void GetInstanceRequestObject()
"endpoint_uris93f83605",
},
ProcessingUnits = 759326966,
CreateTime = new wkt::Timestamp(),
UpdateTime = new wkt::Timestamp(),
};
mockGrpcClient.Setup(x => x.GetInstance(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
InstanceAdminClient client = new InstanceAdminClientImpl(mockGrpcClient.Object, null, null);
Expand Down Expand Up @@ -261,6 +263,8 @@ public void GetInstanceRequestObject()
"endpoint_uris93f83605",
},
ProcessingUnits = 759326966,
CreateTime = new wkt::Timestamp(),
UpdateTime = new wkt::Timestamp(),
};
mockGrpcClient.Setup(x => x.GetInstanceAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Instance>(stt::Task.FromResult(expectedResponse), null, null, null, null));
InstanceAdminClient client = new InstanceAdminClientImpl(mockGrpcClient.Object, null, null);
Expand Down Expand Up @@ -299,6 +303,8 @@ public void GetInstance()
"endpoint_uris93f83605",
},
ProcessingUnits = 759326966,
CreateTime = new wkt::Timestamp(),
UpdateTime = new wkt::Timestamp(),
};
mockGrpcClient.Setup(x => x.GetInstance(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
InstanceAdminClient client = new InstanceAdminClientImpl(mockGrpcClient.Object, null, null);
Expand Down Expand Up @@ -335,6 +341,8 @@ public void GetInstance()
"endpoint_uris93f83605",
},
ProcessingUnits = 759326966,
CreateTime = new wkt::Timestamp(),
UpdateTime = new wkt::Timestamp(),
};
mockGrpcClient.Setup(x => x.GetInstanceAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Instance>(stt::Task.FromResult(expectedResponse), null, null, null, null));
InstanceAdminClient client = new InstanceAdminClientImpl(mockGrpcClient.Object, null, null);
Expand Down Expand Up @@ -373,6 +381,8 @@ public void GetInstanceResourceNames()
"endpoint_uris93f83605",
},
ProcessingUnits = 759326966,
CreateTime = new wkt::Timestamp(),
UpdateTime = new wkt::Timestamp(),
};
mockGrpcClient.Setup(x => x.GetInstance(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
InstanceAdminClient client = new InstanceAdminClientImpl(mockGrpcClient.Object, null, null);
Expand Down Expand Up @@ -409,6 +419,8 @@ public void GetInstanceResourceNames()
"endpoint_uris93f83605",
},
ProcessingUnits = 759326966,
CreateTime = new wkt::Timestamp(),
UpdateTime = new wkt::Timestamp(),
};
mockGrpcClient.Setup(x => x.GetInstanceAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Instance>(stt::Task.FromResult(expectedResponse), null, null, null, null));
InstanceAdminClient client = new InstanceAdminClientImpl(mockGrpcClient.Object, null, null);
Expand Down
Expand Up @@ -1438,7 +1438,7 @@ internal static InstanceAdminClient Create(grpccore::CallInvoker callInvoker, In
/// [Instance][google.spanner.admin.instance.v1.Instance], if successful.
///
/// Authorization requires `spanner.instances.update` permission on
/// resource [name][google.spanner.admin.instance.v1.Instance.name].
/// the resource [name][google.spanner.admin.instance.v1.Instance.name].
/// </summary>
/// <param name="request">The request object containing all of the parameters for the API call.</param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
Expand Down Expand Up @@ -1486,7 +1486,7 @@ internal static InstanceAdminClient Create(grpccore::CallInvoker callInvoker, In
/// [Instance][google.spanner.admin.instance.v1.Instance], if successful.
///
/// Authorization requires `spanner.instances.update` permission on
/// resource [name][google.spanner.admin.instance.v1.Instance.name].
/// the resource [name][google.spanner.admin.instance.v1.Instance.name].
/// </summary>
/// <param name="request">The request object containing all of the parameters for the API call.</param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
Expand Down Expand Up @@ -1534,7 +1534,7 @@ internal static InstanceAdminClient Create(grpccore::CallInvoker callInvoker, In
/// [Instance][google.spanner.admin.instance.v1.Instance], if successful.
///
/// Authorization requires `spanner.instances.update` permission on
/// resource [name][google.spanner.admin.instance.v1.Instance.name].
/// the resource [name][google.spanner.admin.instance.v1.Instance.name].
/// </summary>
/// <param name="request">The request object containing all of the parameters for the API call.</param>
/// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
Expand Down Expand Up @@ -1608,7 +1608,7 @@ internal static InstanceAdminClient Create(grpccore::CallInvoker callInvoker, In
/// [Instance][google.spanner.admin.instance.v1.Instance], if successful.
///
/// Authorization requires `spanner.instances.update` permission on
/// resource [name][google.spanner.admin.instance.v1.Instance.name].
/// the resource [name][google.spanner.admin.instance.v1.Instance.name].
/// </summary>
/// <param name="instance">
/// Required. The instance to update, which must always include the instance
Expand Down Expand Up @@ -1669,7 +1669,7 @@ internal static InstanceAdminClient Create(grpccore::CallInvoker callInvoker, In
/// [Instance][google.spanner.admin.instance.v1.Instance], if successful.
///
/// Authorization requires `spanner.instances.update` permission on
/// resource [name][google.spanner.admin.instance.v1.Instance.name].
/// the resource [name][google.spanner.admin.instance.v1.Instance.name].
/// </summary>
/// <param name="instance">
/// Required. The instance to update, which must always include the instance
Expand Down Expand Up @@ -1730,7 +1730,7 @@ internal static InstanceAdminClient Create(grpccore::CallInvoker callInvoker, In
/// [Instance][google.spanner.admin.instance.v1.Instance], if successful.
///
/// Authorization requires `spanner.instances.update` permission on
/// resource [name][google.spanner.admin.instance.v1.Instance.name].
/// the resource [name][google.spanner.admin.instance.v1.Instance.name].
/// </summary>
/// <param name="instance">
/// Required. The instance to update, which must always include the instance
Expand Down Expand Up @@ -2862,7 +2862,7 @@ public override Instance GetInstance(GetInstanceRequest request, gaxgrpc::CallSe
/// [Instance][google.spanner.admin.instance.v1.Instance], if successful.
///
/// Authorization requires `spanner.instances.update` permission on
/// resource [name][google.spanner.admin.instance.v1.Instance.name].
/// the resource [name][google.spanner.admin.instance.v1.Instance.name].
/// </summary>
/// <param name="request">The request object containing all of the parameters for the API call.</param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
Expand Down Expand Up @@ -2913,7 +2913,7 @@ public override Instance GetInstance(GetInstanceRequest request, gaxgrpc::CallSe
/// [Instance][google.spanner.admin.instance.v1.Instance], if successful.
///
/// Authorization requires `spanner.instances.update` permission on
/// resource [name][google.spanner.admin.instance.v1.Instance.name].
/// the resource [name][google.spanner.admin.instance.v1.Instance.name].
/// </summary>
/// <param name="request">The request object containing all of the parameters for the API call.</param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
Expand Down

0 comments on commit d002223

Please sign in to comment.