Skip to content

Commit c7dedb3

Browse files
committed
more formatting
1 parent 6a2c22b commit c7dedb3

File tree

1 file changed

+20
-60
lines changed

1 file changed

+20
-60
lines changed

google/cloud/compute/firewall_policies/v1/internal/firewall_policies_rest_connection_impl.cc

Lines changed: 20 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,10 @@ FirewallPoliciesRestConnectionImpl::AddAssociation(
9494
},
9595
[request](std::string const& op,
9696
google::cloud::cpp::compute::global_organization_operations::
97-
v1::GetOperationRequest& r) {
98-
r.set_operation(op);
99-
},
97+
v1::GetOperationRequest& r) { r.set_operation(op); },
10098
[request](std::string const& op,
10199
google::cloud::cpp::compute::global_organization_operations::
102-
v1::DeleteOperationRequest& r) {
103-
r.set_operation(op);
104-
});
100+
v1::DeleteOperationRequest& r) { r.set_operation(op); });
105101
}
106102

107103
StatusOr<google::cloud::cpp::compute::v1::Operation>
@@ -223,14 +219,10 @@ FirewallPoliciesRestConnectionImpl::AddRule(
223219
},
224220
[request](std::string const& op,
225221
google::cloud::cpp::compute::global_organization_operations::
226-
v1::GetOperationRequest& r) {
227-
r.set_operation(op);
228-
},
222+
v1::GetOperationRequest& r) { r.set_operation(op); },
229223
[request](std::string const& op,
230224
google::cloud::cpp::compute::global_organization_operations::
231-
v1::DeleteOperationRequest& r) {
232-
r.set_operation(op);
233-
});
225+
v1::DeleteOperationRequest& r) { r.set_operation(op); });
234226
}
235227

236228
StatusOr<google::cloud::cpp::compute::v1::Operation>
@@ -353,14 +345,10 @@ FirewallPoliciesRestConnectionImpl::CloneRules(
353345
},
354346
[request](std::string const& op,
355347
google::cloud::cpp::compute::global_organization_operations::
356-
v1::GetOperationRequest& r) {
357-
r.set_operation(op);
358-
},
348+
v1::GetOperationRequest& r) { r.set_operation(op); },
359349
[request](std::string const& op,
360350
google::cloud::cpp::compute::global_organization_operations::
361-
v1::DeleteOperationRequest& r) {
362-
r.set_operation(op);
363-
});
351+
v1::DeleteOperationRequest& r) { r.set_operation(op); });
364352
}
365353

366354
StatusOr<google::cloud::cpp::compute::v1::Operation>
@@ -483,14 +471,10 @@ FirewallPoliciesRestConnectionImpl::DeleteFirewallPolicy(
483471
},
484472
[request](std::string const& op,
485473
google::cloud::cpp::compute::global_organization_operations::
486-
v1::GetOperationRequest& r) {
487-
r.set_operation(op);
488-
},
474+
v1::GetOperationRequest& r) { r.set_operation(op); },
489475
[request](std::string const& op,
490476
google::cloud::cpp::compute::global_organization_operations::
491-
v1::DeleteOperationRequest& r) {
492-
r.set_operation(op);
493-
});
477+
v1::DeleteOperationRequest& r) { r.set_operation(op); });
494478
}
495479

496480
StatusOr<google::cloud::cpp::compute::v1::Operation>
@@ -676,14 +660,10 @@ FirewallPoliciesRestConnectionImpl::InsertFirewallPolicy(
676660
},
677661
[request](std::string const& op,
678662
google::cloud::cpp::compute::global_organization_operations::
679-
v1::GetOperationRequest& r) {
680-
r.set_operation(op);
681-
},
663+
v1::GetOperationRequest& r) { r.set_operation(op); },
682664
[request](std::string const& op,
683665
google::cloud::cpp::compute::global_organization_operations::
684-
v1::DeleteOperationRequest& r) {
685-
r.set_operation(op);
686-
});
666+
v1::DeleteOperationRequest& r) { r.set_operation(op); });
687667
}
688668

689669
StatusOr<google::cloud::cpp::compute::v1::Operation>
@@ -862,14 +842,10 @@ FirewallPoliciesRestConnectionImpl::Move(
862842
},
863843
[request](std::string const& op,
864844
google::cloud::cpp::compute::global_organization_operations::
865-
v1::GetOperationRequest& r) {
866-
r.set_operation(op);
867-
},
845+
v1::GetOperationRequest& r) { r.set_operation(op); },
868846
[request](std::string const& op,
869847
google::cloud::cpp::compute::global_organization_operations::
870-
v1::DeleteOperationRequest& r) {
871-
r.set_operation(op);
872-
});
848+
v1::DeleteOperationRequest& r) { r.set_operation(op); });
873849
}
874850

875851
StatusOr<google::cloud::cpp::compute::v1::Operation>
@@ -991,14 +967,10 @@ FirewallPoliciesRestConnectionImpl::PatchFirewallPolicy(
991967
},
992968
[request](std::string const& op,
993969
google::cloud::cpp::compute::global_organization_operations::
994-
v1::GetOperationRequest& r) {
995-
r.set_operation(op);
996-
},
970+
v1::GetOperationRequest& r) { r.set_operation(op); },
997971
[request](std::string const& op,
998972
google::cloud::cpp::compute::global_organization_operations::
999-
v1::DeleteOperationRequest& r) {
1000-
r.set_operation(op);
1001-
});
973+
v1::DeleteOperationRequest& r) { r.set_operation(op); });
1002974
}
1003975

1004976
StatusOr<google::cloud::cpp::compute::v1::Operation>
@@ -1120,14 +1092,10 @@ FirewallPoliciesRestConnectionImpl::PatchRule(
11201092
},
11211093
[request](std::string const& op,
11221094
google::cloud::cpp::compute::global_organization_operations::
1123-
v1::GetOperationRequest& r) {
1124-
r.set_operation(op);
1125-
},
1095+
v1::GetOperationRequest& r) { r.set_operation(op); },
11261096
[request](std::string const& op,
11271097
google::cloud::cpp::compute::global_organization_operations::
1128-
v1::DeleteOperationRequest& r) {
1129-
r.set_operation(op);
1130-
});
1098+
v1::DeleteOperationRequest& r) { r.set_operation(op); });
11311099
}
11321100

11331101
StatusOr<google::cloud::cpp::compute::v1::Operation>
@@ -1250,14 +1218,10 @@ FirewallPoliciesRestConnectionImpl::RemoveAssociation(
12501218
},
12511219
[request](std::string const& op,
12521220
google::cloud::cpp::compute::global_organization_operations::
1253-
v1::GetOperationRequest& r) {
1254-
r.set_operation(op);
1255-
},
1221+
v1::GetOperationRequest& r) { r.set_operation(op); },
12561222
[request](std::string const& op,
12571223
google::cloud::cpp::compute::global_organization_operations::
1258-
v1::DeleteOperationRequest& r) {
1259-
r.set_operation(op);
1260-
});
1224+
v1::DeleteOperationRequest& r) { r.set_operation(op); });
12611225
}
12621226

12631227
StatusOr<google::cloud::cpp::compute::v1::Operation>
@@ -1379,14 +1343,10 @@ FirewallPoliciesRestConnectionImpl::RemoveRule(
13791343
},
13801344
[request](std::string const& op,
13811345
google::cloud::cpp::compute::global_organization_operations::
1382-
v1::GetOperationRequest& r) {
1383-
r.set_operation(op);
1384-
},
1346+
v1::GetOperationRequest& r) { r.set_operation(op); },
13851347
[request](std::string const& op,
13861348
google::cloud::cpp::compute::global_organization_operations::
1387-
v1::DeleteOperationRequest& r) {
1388-
r.set_operation(op);
1389-
});
1349+
v1::DeleteOperationRequest& r) { r.set_operation(op); });
13901350
}
13911351

13921352
StatusOr<google::cloud::cpp::compute::v1::Operation>

0 commit comments

Comments
 (0)