Skip to content

Commit

Permalink
fix!: rename parent to project in SearchRelatedAccountGroupMembership…
Browse files Browse the repository at this point in the history
…sRequest

feat: introduced WafSettings

PiperOrigin-RevId: 446496512

Source-Link: googleapis/googleapis@63d4fba

Source-Link: googleapis/googleapis-gen@f168b29
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuUmVjYXB0Y2hhRW50ZXJwcmlzZS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiZjE2OGIyOWU0NGQxZDA5YmM0MDdlOGVmMDk1ODdiN2M4ZmNmZTYyMiJ9
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed May 5, 2022
1 parent 9f67d86 commit 4ff737b
Show file tree
Hide file tree
Showing 12 changed files with 549 additions and 199 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ public async Task SearchRelatedAccountGroupMembershipsAsync()
// Create client
RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/relatedaccountgroups/[RELATEDACCOUNTGROUP]";
string project = "projects/[PROJECT]/relatedaccountgroups/[RELATEDACCOUNTGROUP]";
ByteString hashedAccountId = ByteString.Empty;
// Make the request
PagedAsyncEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMembershipsAsync(parent, hashedAccountId);
PagedAsyncEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMembershipsAsync(project, hashedAccountId);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RelatedAccountGroupMembership item) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public async Task SearchRelatedAccountGroupMembershipsRequestObjectAsync()
// Initialize request argument(s)
SearchRelatedAccountGroupMembershipsRequest request = new SearchRelatedAccountGroupMembershipsRequest
{
ParentAsRelatedAccountGroupName = RelatedAccountGroupName.FromProjectRelatedaccountgroup("[PROJECT]", "[RELATEDACCOUNTGROUP]"),
ProjectAsRelatedAccountGroupName = RelatedAccountGroupName.FromProjectRelatedaccountgroup("[PROJECT]", "[RELATEDACCOUNTGROUP]"),
HashedAccountId = ByteString.Empty,
};
// Make the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void SearchRelatedAccountGroupMembershipsRequestObject()
// Initialize request argument(s)
SearchRelatedAccountGroupMembershipsRequest request = new SearchRelatedAccountGroupMembershipsRequest
{
ParentAsRelatedAccountGroupName = RelatedAccountGroupName.FromProjectRelatedaccountgroup("[PROJECT]", "[RELATEDACCOUNTGROUP]"),
ProjectAsRelatedAccountGroupName = RelatedAccountGroupName.FromProjectRelatedaccountgroup("[PROJECT]", "[RELATEDACCOUNTGROUP]"),
HashedAccountId = ByteString.Empty,
};
// Make the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ public async Task SearchRelatedAccountGroupMembershipsResourceNamesAsync()
// Create client
RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
// Initialize request argument(s)
RelatedAccountGroupName parent = RelatedAccountGroupName.FromProjectRelatedaccountgroup("[PROJECT]", "[RELATEDACCOUNTGROUP]");
RelatedAccountGroupName project = RelatedAccountGroupName.FromProjectRelatedaccountgroup("[PROJECT]", "[RELATEDACCOUNTGROUP]");
ByteString hashedAccountId = ByteString.Empty;
// Make the request
PagedAsyncEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMembershipsAsync(parent, hashedAccountId);
PagedAsyncEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMembershipsAsync(project, hashedAccountId);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RelatedAccountGroupMembership item) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ public void SearchRelatedAccountGroupMembershipsResourceNames()
// Create client
RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
// Initialize request argument(s)
RelatedAccountGroupName parent = RelatedAccountGroupName.FromProjectRelatedaccountgroup("[PROJECT]", "[RELATEDACCOUNTGROUP]");
RelatedAccountGroupName project = RelatedAccountGroupName.FromProjectRelatedaccountgroup("[PROJECT]", "[RELATEDACCOUNTGROUP]");
ByteString hashedAccountId = ByteString.Empty;
// Make the request
PagedEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMemberships(parent, hashedAccountId);
PagedEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMemberships(project, hashedAccountId);

// Iterate over all response items, lazily performing RPCs as required
foreach (RelatedAccountGroupMembership item in response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ public void SearchRelatedAccountGroupMemberships()
// Create client
RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/relatedaccountgroups/[RELATEDACCOUNTGROUP]";
string project = "projects/[PROJECT]/relatedaccountgroups/[RELATEDACCOUNTGROUP]";
ByteString hashedAccountId = ByteString.Empty;
// Make the request
PagedEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMemberships(parent, hashedAccountId);
PagedEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMemberships(project, hashedAccountId);

// Iterate over all response items, lazily performing RPCs as required
foreach (RelatedAccountGroupMembership item in response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ public void SearchRelatedAccountGroupMembershipsRequestObject()
// Initialize request argument(s)
SearchRelatedAccountGroupMembershipsRequest request = new SearchRelatedAccountGroupMembershipsRequest
{
ParentAsRelatedAccountGroupName = RelatedAccountGroupName.FromProjectRelatedaccountgroup("[PROJECT]", "[RELATEDACCOUNTGROUP]"),
ProjectAsRelatedAccountGroupName = RelatedAccountGroupName.FromProjectRelatedaccountgroup("[PROJECT]", "[RELATEDACCOUNTGROUP]"),
HashedAccountId = ByteString.Empty,
};
// Make the request
Expand Down Expand Up @@ -1185,7 +1185,7 @@ public async Task SearchRelatedAccountGroupMembershipsRequestObjectAsync()
// Initialize request argument(s)
SearchRelatedAccountGroupMembershipsRequest request = new SearchRelatedAccountGroupMembershipsRequest
{
ParentAsRelatedAccountGroupName = RelatedAccountGroupName.FromProjectRelatedaccountgroup("[PROJECT]", "[RELATEDACCOUNTGROUP]"),
ProjectAsRelatedAccountGroupName = RelatedAccountGroupName.FromProjectRelatedaccountgroup("[PROJECT]", "[RELATEDACCOUNTGROUP]"),
HashedAccountId = ByteString.Empty,
};
// Make the request
Expand Down Expand Up @@ -1232,10 +1232,10 @@ public void SearchRelatedAccountGroupMemberships()
// Create client
RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/relatedaccountgroups/[RELATEDACCOUNTGROUP]";
string project = "projects/[PROJECT]/relatedaccountgroups/[RELATEDACCOUNTGROUP]";
ByteString hashedAccountId = ByteString.Empty;
// Make the request
PagedEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMemberships(parent, hashedAccountId);
PagedEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMemberships(project, hashedAccountId);

// Iterate over all response items, lazily performing RPCs as required
foreach (RelatedAccountGroupMembership item in response)
Expand Down Expand Up @@ -1278,10 +1278,10 @@ public async Task SearchRelatedAccountGroupMembershipsAsync()
// Create client
RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/relatedaccountgroups/[RELATEDACCOUNTGROUP]";
string project = "projects/[PROJECT]/relatedaccountgroups/[RELATEDACCOUNTGROUP]";
ByteString hashedAccountId = ByteString.Empty;
// Make the request
PagedAsyncEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMembershipsAsync(parent, hashedAccountId);
PagedAsyncEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMembershipsAsync(project, hashedAccountId);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RelatedAccountGroupMembership item) =>
Expand Down Expand Up @@ -1324,10 +1324,10 @@ public void SearchRelatedAccountGroupMembershipsResourceNames()
// Create client
RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create();
// Initialize request argument(s)
RelatedAccountGroupName parent = RelatedAccountGroupName.FromProjectRelatedaccountgroup("[PROJECT]", "[RELATEDACCOUNTGROUP]");
RelatedAccountGroupName project = RelatedAccountGroupName.FromProjectRelatedaccountgroup("[PROJECT]", "[RELATEDACCOUNTGROUP]");
ByteString hashedAccountId = ByteString.Empty;
// Make the request
PagedEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMemberships(parent, hashedAccountId);
PagedEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMemberships(project, hashedAccountId);

// Iterate over all response items, lazily performing RPCs as required
foreach (RelatedAccountGroupMembership item in response)
Expand Down Expand Up @@ -1370,10 +1370,10 @@ public async Task SearchRelatedAccountGroupMembershipsResourceNamesAsync()
// Create client
RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync();
// Initialize request argument(s)
RelatedAccountGroupName parent = RelatedAccountGroupName.FromProjectRelatedaccountgroup("[PROJECT]", "[RELATEDACCOUNTGROUP]");
RelatedAccountGroupName project = RelatedAccountGroupName.FromProjectRelatedaccountgroup("[PROJECT]", "[RELATEDACCOUNTGROUP]");
ByteString hashedAccountId = ByteString.Empty;
// Make the request
PagedAsyncEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMembershipsAsync(parent, hashedAccountId);
PagedAsyncEnumerable<SearchRelatedAccountGroupMembershipsResponse, RelatedAccountGroupMembership> response = recaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMembershipsAsync(project, hashedAccountId);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RelatedAccountGroupMembership item) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ public void CreateKeyRequestObject()
},
CreateTime = new wkt::Timestamp(),
TestingOptions = new TestingOptions(),
WafSettings = new WafSettings(),
};
mockGrpcClient.Setup(x => x.CreateKey(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
RecaptchaEnterpriseServiceClient client = new RecaptchaEnterpriseServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -355,6 +356,7 @@ public void CreateKeyRequestObject()
},
CreateTime = new wkt::Timestamp(),
TestingOptions = new TestingOptions(),
WafSettings = new WafSettings(),
};
mockGrpcClient.Setup(x => x.CreateKeyAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Key>(stt::Task.FromResult(expectedResponse), null, null, null, null));
RecaptchaEnterpriseServiceClient client = new RecaptchaEnterpriseServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -389,6 +391,7 @@ public void GetKeyRequestObject()
},
CreateTime = new wkt::Timestamp(),
TestingOptions = new TestingOptions(),
WafSettings = new WafSettings(),
};
mockGrpcClient.Setup(x => x.GetKey(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
RecaptchaEnterpriseServiceClient client = new RecaptchaEnterpriseServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -421,6 +424,7 @@ public void GetKeyRequestObject()
},
CreateTime = new wkt::Timestamp(),
TestingOptions = new TestingOptions(),
WafSettings = new WafSettings(),
};
mockGrpcClient.Setup(x => x.GetKeyAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Key>(stt::Task.FromResult(expectedResponse), null, null, null, null));
RecaptchaEnterpriseServiceClient client = new RecaptchaEnterpriseServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -456,6 +460,7 @@ public void UpdateKeyRequestObject()
},
CreateTime = new wkt::Timestamp(),
TestingOptions = new TestingOptions(),
WafSettings = new WafSettings(),
};
mockGrpcClient.Setup(x => x.UpdateKey(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
RecaptchaEnterpriseServiceClient client = new RecaptchaEnterpriseServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -489,6 +494,7 @@ public void UpdateKeyRequestObject()
},
CreateTime = new wkt::Timestamp(),
TestingOptions = new TestingOptions(),
WafSettings = new WafSettings(),
};
mockGrpcClient.Setup(x => x.UpdateKeyAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Key>(stt::Task.FromResult(expectedResponse), null, null, null, null));
RecaptchaEnterpriseServiceClient client = new RecaptchaEnterpriseServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -554,6 +560,7 @@ public void MigrateKeyRequestObject()
},
CreateTime = new wkt::Timestamp(),
TestingOptions = new TestingOptions(),
WafSettings = new WafSettings(),
};
mockGrpcClient.Setup(x => x.MigrateKey(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
RecaptchaEnterpriseServiceClient client = new RecaptchaEnterpriseServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -586,6 +593,7 @@ public void MigrateKeyRequestObject()
},
CreateTime = new wkt::Timestamp(),
TestingOptions = new TestingOptions(),
WafSettings = new WafSettings(),
};
mockGrpcClient.Setup(x => x.MigrateKeyAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Key>(stt::Task.FromResult(expectedResponse), null, null, null, null));
RecaptchaEnterpriseServiceClient client = new RecaptchaEnterpriseServiceClientImpl(mockGrpcClient.Object, null);
Expand Down
Loading

0 comments on commit 4ff737b

Please sign in to comment.