Skip to content

Commit

Permalink
feat: Add compliant_but_disallowed_services field to the v1beta1 Work…
Browse files Browse the repository at this point in the history
…load proto

Committer: @samhutton
PiperOrigin-RevId: 471822190

Source-Link: googleapis/googleapis@61f75b4

Source-Link: googleapis/googleapis-gen@9abf7bc
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQXNzdXJlZFdvcmtsb2Fkcy5WMUJldGExLy5Pd2xCb3QueWFtbCIsImgiOiI5YWJmN2JjMjcxNTcwZjcwNzNjODljMGQ0YmViM2I4NmE2NjY3OGNiIn0=
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Sep 2, 2022
1 parent 0bd5f73 commit b632564
Show file tree
Hide file tree
Showing 4 changed files with 165 additions and 92 deletions.
Expand Up @@ -77,6 +77,10 @@ public void UpdateWorkloadRequestObject()
KajEnrollmentState = Workload.Types.KajEnrollmentState.Unspecified,
EnableSovereignControls = true,
SaaEnrollmentResponse = new Workload.Types.SaaEnrollmentResponse(),
CompliantButDisallowedServices =
{
"compliant_but_disallowed_services603cb12f",
},
};
mockGrpcClient.Setup(x => x.UpdateWorkload(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null, null);
Expand Down Expand Up @@ -133,6 +137,10 @@ public void UpdateWorkloadRequestObject()
KajEnrollmentState = Workload.Types.KajEnrollmentState.Unspecified,
EnableSovereignControls = true,
SaaEnrollmentResponse = new Workload.Types.SaaEnrollmentResponse(),
CompliantButDisallowedServices =
{
"compliant_but_disallowed_services603cb12f",
},
};
mockGrpcClient.Setup(x => x.UpdateWorkloadAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Workload>(stt::Task.FromResult(expectedResponse), null, null, null, null));
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null, null);
Expand Down Expand Up @@ -191,6 +199,10 @@ public void UpdateWorkload()
KajEnrollmentState = Workload.Types.KajEnrollmentState.Unspecified,
EnableSovereignControls = true,
SaaEnrollmentResponse = new Workload.Types.SaaEnrollmentResponse(),
CompliantButDisallowedServices =
{
"compliant_but_disallowed_services603cb12f",
},
};
mockGrpcClient.Setup(x => x.UpdateWorkload(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null, null);
Expand Down Expand Up @@ -247,6 +259,10 @@ public void UpdateWorkload()
KajEnrollmentState = Workload.Types.KajEnrollmentState.Unspecified,
EnableSovereignControls = true,
SaaEnrollmentResponse = new Workload.Types.SaaEnrollmentResponse(),
CompliantButDisallowedServices =
{
"compliant_but_disallowed_services603cb12f",
},
};
mockGrpcClient.Setup(x => x.UpdateWorkloadAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Workload>(stt::Task.FromResult(expectedResponse), null, null, null, null));
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null, null);
Expand Down Expand Up @@ -443,6 +459,10 @@ public void GetWorkloadRequestObject()
KajEnrollmentState = Workload.Types.KajEnrollmentState.Unspecified,
EnableSovereignControls = true,
SaaEnrollmentResponse = new Workload.Types.SaaEnrollmentResponse(),
CompliantButDisallowedServices =
{
"compliant_but_disallowed_services603cb12f",
},
};
mockGrpcClient.Setup(x => x.GetWorkload(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null, null);
Expand Down Expand Up @@ -498,6 +518,10 @@ public void GetWorkloadRequestObject()
KajEnrollmentState = Workload.Types.KajEnrollmentState.Unspecified,
EnableSovereignControls = true,
SaaEnrollmentResponse = new Workload.Types.SaaEnrollmentResponse(),
CompliantButDisallowedServices =
{
"compliant_but_disallowed_services603cb12f",
},
};
mockGrpcClient.Setup(x => x.GetWorkloadAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Workload>(stt::Task.FromResult(expectedResponse), null, null, null, null));
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null, null);
Expand Down Expand Up @@ -555,6 +579,10 @@ public void GetWorkload()
KajEnrollmentState = Workload.Types.KajEnrollmentState.Unspecified,
EnableSovereignControls = true,
SaaEnrollmentResponse = new Workload.Types.SaaEnrollmentResponse(),
CompliantButDisallowedServices =
{
"compliant_but_disallowed_services603cb12f",
},
};
mockGrpcClient.Setup(x => x.GetWorkload(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null, null);
Expand Down Expand Up @@ -610,6 +638,10 @@ public void GetWorkload()
KajEnrollmentState = Workload.Types.KajEnrollmentState.Unspecified,
EnableSovereignControls = true,
SaaEnrollmentResponse = new Workload.Types.SaaEnrollmentResponse(),
CompliantButDisallowedServices =
{
"compliant_but_disallowed_services603cb12f",
},
};
mockGrpcClient.Setup(x => x.GetWorkloadAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Workload>(stt::Task.FromResult(expectedResponse), null, null, null, null));
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null, null);
Expand Down Expand Up @@ -667,6 +699,10 @@ public void GetWorkloadResourceNames()
KajEnrollmentState = Workload.Types.KajEnrollmentState.Unspecified,
EnableSovereignControls = true,
SaaEnrollmentResponse = new Workload.Types.SaaEnrollmentResponse(),
CompliantButDisallowedServices =
{
"compliant_but_disallowed_services603cb12f",
},
};
mockGrpcClient.Setup(x => x.GetWorkload(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null, null);
Expand Down Expand Up @@ -722,6 +758,10 @@ public void GetWorkloadResourceNames()
KajEnrollmentState = Workload.Types.KajEnrollmentState.Unspecified,
EnableSovereignControls = true,
SaaEnrollmentResponse = new Workload.Types.SaaEnrollmentResponse(),
CompliantButDisallowedServices =
{
"compliant_but_disallowed_services603cb12f",
},
};
mockGrpcClient.Setup(x => x.GetWorkloadAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Workload>(stt::Task.FromResult(expectedResponse), null, null, null, null));
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null, null);
Expand Down
Expand Up @@ -935,8 +935,8 @@ internal static AssuredWorkloadsServiceClient Create(grpccore::CallInvoker callI
GetWorkloadAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));

/// <summary>
/// A request to analyze a hypothetical move of a source project or
/// project-based workload to a target (destination) folder-based workload.
/// Analyze if the source Assured Workloads can be moved to the target Assured
/// Workload
/// </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 All @@ -945,8 +945,8 @@ internal static AssuredWorkloadsServiceClient Create(grpccore::CallInvoker callI
throw new sys::NotImplementedException();

/// <summary>
/// A request to analyze a hypothetical move of a source project or
/// project-based workload to a target (destination) folder-based workload.
/// Analyze if the source Assured Workloads can be moved to the target Assured
/// Workload
/// </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 All @@ -955,8 +955,8 @@ internal static AssuredWorkloadsServiceClient Create(grpccore::CallInvoker callI
throw new sys::NotImplementedException();

/// <summary>
/// A request to analyze a hypothetical move of a source project or
/// project-based workload to a target (destination) folder-based workload.
/// Analyze if the source Assured Workloads can be moved to the target Assured
/// Workload
/// </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 All @@ -965,8 +965,8 @@ internal static AssuredWorkloadsServiceClient Create(grpccore::CallInvoker callI
AnalyzeWorkloadMoveAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));

/// <summary>
/// A request to analyze a hypothetical move of a source project or
/// project-based workload to a target (destination) folder-based workload.
/// Analyze if the source Assured Workloads can be moved to the target Assured
/// Workload
/// </summary>
/// <param name="project">
/// The source type is a project. Specify the project's relative resource
Expand Down Expand Up @@ -994,8 +994,8 @@ internal static AssuredWorkloadsServiceClient Create(grpccore::CallInvoker callI
}, callSettings);

/// <summary>
/// A request to analyze a hypothetical move of a source project or
/// project-based workload to a target (destination) folder-based workload.
/// Analyze if the source Assured Workloads can be moved to the target Assured
/// Workload
/// </summary>
/// <param name="project">
/// The source type is a project. Specify the project's relative resource
Expand Down Expand Up @@ -1023,8 +1023,8 @@ internal static AssuredWorkloadsServiceClient Create(grpccore::CallInvoker callI
}, callSettings);

/// <summary>
/// A request to analyze a hypothetical move of a source project or
/// project-based workload to a target (destination) folder-based workload.
/// Analyze if the source Assured Workloads can be moved to the target Assured
/// Workload
/// </summary>
/// <param name="project">
/// The source type is a project. Specify the project's relative resource
Expand Down Expand Up @@ -1410,8 +1410,8 @@ public override Workload GetWorkload(GetWorkloadRequest request, gaxgrpc::CallSe
}

/// <summary>
/// A request to analyze a hypothetical move of a source project or
/// project-based workload to a target (destination) folder-based workload.
/// Analyze if the source Assured Workloads can be moved to the target Assured
/// Workload
/// </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 All @@ -1423,8 +1423,8 @@ public override AnalyzeWorkloadMoveResponse AnalyzeWorkloadMove(AnalyzeWorkloadM
}

/// <summary>
/// A request to analyze a hypothetical move of a source project or
/// project-based workload to a target (destination) folder-based workload.
/// Analyze if the source Assured Workloads can be moved to the target Assured
/// Workload
/// </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 b632564

Please sign in to comment.