Skip to content

Commit

Permalink
Regenerate golden files and libraries.
Browse files Browse the repository at this point in the history
  • Loading branch information
devbww committed Feb 4, 2022
1 parent f0bc660 commit ef7628a
Show file tree
Hide file tree
Showing 93 changed files with 394 additions and 2,120 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,8 @@ GoldenKitchenSinkConnection::WriteLogEntries(

StreamRange<std::string> GoldenKitchenSinkConnection::ListLogs(
google::test::admin::database::v1::ListLogsRequest request) {
return google::cloud::internal::MakePaginationRange<StreamRange<
std::string>>(
std::move(request),
[](google::test::admin::database::v1::ListLogsRequest const&) {
return StatusOr<google::test::admin::database::v1::ListLogsResponse>(
Status(StatusCode::kUnimplemented, "not implemented"));
},
[](google::test::admin::database::v1::ListLogsResponse const&) {
return std::vector<std::string>();
});
return google::cloud::internal::MakeUnimplementedPaginationRange<
StreamRange<std::string>>();
}

StreamRange<google::test::admin::database::v1::TailLogEntriesResponse> GoldenKitchenSinkConnection::TailLogEntries(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,8 @@ GoldenThingAdminConnection::~GoldenThingAdminConnection() = default;

StreamRange<google::test::admin::database::v1::Database> GoldenThingAdminConnection::ListDatabases(
google::test::admin::database::v1::ListDatabasesRequest request) {
return google::cloud::internal::MakePaginationRange<StreamRange<
google::test::admin::database::v1::Database>>(
std::move(request),
[](google::test::admin::database::v1::ListDatabasesRequest const&) {
return StatusOr<google::test::admin::database::v1::ListDatabasesResponse>(
Status(StatusCode::kUnimplemented, "not implemented"));
},
[](google::test::admin::database::v1::ListDatabasesResponse const&) {
return std::vector<google::test::admin::database::v1::Database>();
});
return google::cloud::internal::MakeUnimplementedPaginationRange<
StreamRange<google::test::admin::database::v1::Database>>();
}

future<StatusOr<google::test::admin::database::v1::Database>>
Expand Down Expand Up @@ -129,16 +121,8 @@ GoldenThingAdminConnection::DeleteBackup(

StreamRange<google::test::admin::database::v1::Backup> GoldenThingAdminConnection::ListBackups(
google::test::admin::database::v1::ListBackupsRequest request) {
return google::cloud::internal::MakePaginationRange<StreamRange<
google::test::admin::database::v1::Backup>>(
std::move(request),
[](google::test::admin::database::v1::ListBackupsRequest const&) {
return StatusOr<google::test::admin::database::v1::ListBackupsResponse>(
Status(StatusCode::kUnimplemented, "not implemented"));
},
[](google::test::admin::database::v1::ListBackupsResponse const&) {
return std::vector<google::test::admin::database::v1::Backup>();
});
return google::cloud::internal::MakeUnimplementedPaginationRange<
StreamRange<google::test::admin::database::v1::Backup>>();
}

future<StatusOr<google::test::admin::database::v1::Database>>
Expand All @@ -151,30 +135,14 @@ GoldenThingAdminConnection::RestoreDatabase(

StreamRange<google::longrunning::Operation> GoldenThingAdminConnection::ListDatabaseOperations(
google::test::admin::database::v1::ListDatabaseOperationsRequest request) {
return google::cloud::internal::MakePaginationRange<StreamRange<
google::longrunning::Operation>>(
std::move(request),
[](google::test::admin::database::v1::ListDatabaseOperationsRequest const&) {
return StatusOr<google::test::admin::database::v1::ListDatabaseOperationsResponse>(
Status(StatusCode::kUnimplemented, "not implemented"));
},
[](google::test::admin::database::v1::ListDatabaseOperationsResponse const&) {
return std::vector<google::longrunning::Operation>();
});
return google::cloud::internal::MakeUnimplementedPaginationRange<
StreamRange<google::longrunning::Operation>>();
}

StreamRange<google::longrunning::Operation> GoldenThingAdminConnection::ListBackupOperations(
google::test::admin::database::v1::ListBackupOperationsRequest request) {
return google::cloud::internal::MakePaginationRange<StreamRange<
google::longrunning::Operation>>(
std::move(request),
[](google::test::admin::database::v1::ListBackupOperationsRequest const&) {
return StatusOr<google::test::admin::database::v1::ListBackupOperationsResponse>(
Status(StatusCode::kUnimplemented, "not implemented"));
},
[](google::test::admin::database::v1::ListBackupOperationsResponse const&) {
return std::vector<google::longrunning::Operation>();
});
return google::cloud::internal::MakeUnimplementedPaginationRange<
StreamRange<google::longrunning::Operation>>();
}

future<StatusOr<google::test::admin::database::v1::Database>>
Expand Down
16 changes: 2 additions & 14 deletions google/cloud/accessapproval/access_approval_connection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,8 @@ AccessApprovalConnection::~AccessApprovalConnection() = default;
StreamRange<google::cloud::accessapproval::v1::ApprovalRequest>
AccessApprovalConnection::ListApprovalRequests(
google::cloud::accessapproval::v1::ListApprovalRequestsMessage request) {
return google::cloud::internal::MakePaginationRange<
StreamRange<google::cloud::accessapproval::v1::ApprovalRequest>>(
std::move(request),
[](google::cloud::accessapproval::v1::
ListApprovalRequestsMessage const&) {
return StatusOr<
google::cloud::accessapproval::v1::ListApprovalRequestsResponse>(
Status(StatusCode::kUnimplemented, "not implemented"));
},
[](google::cloud::accessapproval::v1::
ListApprovalRequestsResponse const&) {
return std::vector<
google::cloud::accessapproval::v1::ApprovalRequest>();
});
return google::cloud::internal::MakeUnimplementedPaginationRange<
StreamRange<google::cloud::accessapproval::v1::ApprovalRequest>>();
}

StatusOr<google::cloud::accessapproval::v1::ApprovalRequest>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,8 @@ StreamRange<google::identity::accesscontextmanager::v1::AccessPolicy>
AccessContextManagerConnection::ListAccessPolicies(
google::identity::accesscontextmanager::v1::ListAccessPoliciesRequest
request) {
return google::cloud::internal::MakePaginationRange<
StreamRange<google::identity::accesscontextmanager::v1::AccessPolicy>>(
std::move(request),
[](google::identity::accesscontextmanager::v1::
ListAccessPoliciesRequest const&) {
return StatusOr<google::identity::accesscontextmanager::v1::
ListAccessPoliciesResponse>(
Status(StatusCode::kUnimplemented, "not implemented"));
},
[](google::identity::accesscontextmanager::v1::
ListAccessPoliciesResponse const&) {
return std::vector<
google::identity::accesscontextmanager::v1::AccessPolicy>();
});
return google::cloud::internal::MakeUnimplementedPaginationRange<
StreamRange<google::identity::accesscontextmanager::v1::AccessPolicy>>();
}

StatusOr<google::identity::accesscontextmanager::v1::AccessPolicy>
Expand Down Expand Up @@ -93,20 +81,8 @@ StreamRange<google::identity::accesscontextmanager::v1::AccessLevel>
AccessContextManagerConnection::ListAccessLevels(
google::identity::accesscontextmanager::v1::ListAccessLevelsRequest
request) {
return google::cloud::internal::MakePaginationRange<
StreamRange<google::identity::accesscontextmanager::v1::AccessLevel>>(
std::move(request),
[](google::identity::accesscontextmanager::v1::
ListAccessLevelsRequest const&) {
return StatusOr<google::identity::accesscontextmanager::v1::
ListAccessLevelsResponse>(
Status(StatusCode::kUnimplemented, "not implemented"));
},
[](google::identity::accesscontextmanager::v1::
ListAccessLevelsResponse const&) {
return std::vector<
google::identity::accesscontextmanager::v1::AccessLevel>();
});
return google::cloud::internal::MakeUnimplementedPaginationRange<
StreamRange<google::identity::accesscontextmanager::v1::AccessLevel>>();
}

StatusOr<google::identity::accesscontextmanager::v1::AccessLevel>
Expand Down Expand Up @@ -158,20 +134,8 @@ StreamRange<google::identity::accesscontextmanager::v1::ServicePerimeter>
AccessContextManagerConnection::ListServicePerimeters(
google::identity::accesscontextmanager::v1::ListServicePerimetersRequest
request) {
return google::cloud::internal::MakePaginationRange<StreamRange<
google::identity::accesscontextmanager::v1::ServicePerimeter>>(
std::move(request),
[](google::identity::accesscontextmanager::v1::
ListServicePerimetersRequest const&) {
return StatusOr<google::identity::accesscontextmanager::v1::
ListServicePerimetersResponse>(
Status(StatusCode::kUnimplemented, "not implemented"));
},
[](google::identity::accesscontextmanager::v1::
ListServicePerimetersResponse const&) {
return std::vector<
google::identity::accesscontextmanager::v1::ServicePerimeter>();
});
return google::cloud::internal::MakeUnimplementedPaginationRange<StreamRange<
google::identity::accesscontextmanager::v1::ServicePerimeter>>();
}

StatusOr<google::identity::accesscontextmanager::v1::ServicePerimeter>
Expand Down Expand Up @@ -236,20 +200,8 @@ StreamRange<google::identity::accesscontextmanager::v1::GcpUserAccessBinding>
AccessContextManagerConnection::ListGcpUserAccessBindings(
google::identity::accesscontextmanager::v1::ListGcpUserAccessBindingsRequest
request) {
return google::cloud::internal::MakePaginationRange<StreamRange<
google::identity::accesscontextmanager::v1::GcpUserAccessBinding>>(
std::move(request),
[](google::identity::accesscontextmanager::v1::
ListGcpUserAccessBindingsRequest const&) {
return StatusOr<google::identity::accesscontextmanager::v1::
ListGcpUserAccessBindingsResponse>(
Status(StatusCode::kUnimplemented, "not implemented"));
},
[](google::identity::accesscontextmanager::v1::
ListGcpUserAccessBindingsResponse const&) {
return std::vector<
google::identity::accesscontextmanager::v1::GcpUserAccessBinding>();
});
return google::cloud::internal::MakeUnimplementedPaginationRange<StreamRange<
google::identity::accesscontextmanager::v1::GcpUserAccessBinding>>();
}

StatusOr<google::identity::accesscontextmanager::v1::GcpUserAccessBinding>
Expand Down
36 changes: 6 additions & 30 deletions google/cloud/apigateway/api_gateway_connection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,8 @@ ApiGatewayServiceConnection::~ApiGatewayServiceConnection() = default;
StreamRange<google::cloud::apigateway::v1::Gateway>
ApiGatewayServiceConnection::ListGateways(
google::cloud::apigateway::v1::ListGatewaysRequest request) {
return google::cloud::internal::MakePaginationRange<
StreamRange<google::cloud::apigateway::v1::Gateway>>(
std::move(request),
[](google::cloud::apigateway::v1::ListGatewaysRequest const&) {
return StatusOr<google::cloud::apigateway::v1::ListGatewaysResponse>(
Status(StatusCode::kUnimplemented, "not implemented"));
},
[](google::cloud::apigateway::v1::ListGatewaysResponse const&) {
return std::vector<google::cloud::apigateway::v1::Gateway>();
});
return google::cloud::internal::MakeUnimplementedPaginationRange<
StreamRange<google::cloud::apigateway::v1::Gateway>>();
}

StatusOr<google::cloud::apigateway::v1::Gateway>
Expand Down Expand Up @@ -83,16 +75,8 @@ ApiGatewayServiceConnection::DeleteGateway(
StreamRange<google::cloud::apigateway::v1::Api>
ApiGatewayServiceConnection::ListApis(
google::cloud::apigateway::v1::ListApisRequest request) {
return google::cloud::internal::MakePaginationRange<
StreamRange<google::cloud::apigateway::v1::Api>>(
std::move(request),
[](google::cloud::apigateway::v1::ListApisRequest const&) {
return StatusOr<google::cloud::apigateway::v1::ListApisResponse>(
Status(StatusCode::kUnimplemented, "not implemented"));
},
[](google::cloud::apigateway::v1::ListApisResponse const&) {
return std::vector<google::cloud::apigateway::v1::Api>();
});
return google::cloud::internal::MakeUnimplementedPaginationRange<
StreamRange<google::cloud::apigateway::v1::Api>>();
}

StatusOr<google::cloud::apigateway::v1::Api>
Expand Down Expand Up @@ -128,16 +112,8 @@ ApiGatewayServiceConnection::DeleteApi(
StreamRange<google::cloud::apigateway::v1::ApiConfig>
ApiGatewayServiceConnection::ListApiConfigs(
google::cloud::apigateway::v1::ListApiConfigsRequest request) {
return google::cloud::internal::MakePaginationRange<
StreamRange<google::cloud::apigateway::v1::ApiConfig>>(
std::move(request),
[](google::cloud::apigateway::v1::ListApiConfigsRequest const&) {
return StatusOr<google::cloud::apigateway::v1::ListApiConfigsResponse>(
Status(StatusCode::kUnimplemented, "not implemented"));
},
[](google::cloud::apigateway::v1::ListApiConfigsResponse const&) {
return std::vector<google::cloud::apigateway::v1::ApiConfig>();
});
return google::cloud::internal::MakeUnimplementedPaginationRange<
StreamRange<google::cloud::apigateway::v1::ApiConfig>>();
}

StatusOr<google::cloud::apigateway::v1::ApiConfig>
Expand Down
13 changes: 2 additions & 11 deletions google/cloud/appengine/authorized_certificates_connection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,8 @@ AuthorizedCertificatesConnection::~AuthorizedCertificatesConnection() = default;
StreamRange<google::appengine::v1::AuthorizedCertificate>
AuthorizedCertificatesConnection::ListAuthorizedCertificates(
google::appengine::v1::ListAuthorizedCertificatesRequest request) {
return google::cloud::internal::MakePaginationRange<
StreamRange<google::appengine::v1::AuthorizedCertificate>>(
std::move(request),
[](google::appengine::v1::ListAuthorizedCertificatesRequest const&) {
return StatusOr<
google::appengine::v1::ListAuthorizedCertificatesResponse>(
Status(StatusCode::kUnimplemented, "not implemented"));
},
[](google::appengine::v1::ListAuthorizedCertificatesResponse const&) {
return std::vector<google::appengine::v1::AuthorizedCertificate>();
});
return google::cloud::internal::MakeUnimplementedPaginationRange<
StreamRange<google::appengine::v1::AuthorizedCertificate>>();
}

StatusOr<google::appengine::v1::AuthorizedCertificate>
Expand Down
12 changes: 2 additions & 10 deletions google/cloud/appengine/authorized_domains_connection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,8 @@ AuthorizedDomainsConnection::~AuthorizedDomainsConnection() = default;
StreamRange<google::appengine::v1::AuthorizedDomain>
AuthorizedDomainsConnection::ListAuthorizedDomains(
google::appengine::v1::ListAuthorizedDomainsRequest request) {
return google::cloud::internal::MakePaginationRange<
StreamRange<google::appengine::v1::AuthorizedDomain>>(
std::move(request),
[](google::appengine::v1::ListAuthorizedDomainsRequest const&) {
return StatusOr<google::appengine::v1::ListAuthorizedDomainsResponse>(
Status(StatusCode::kUnimplemented, "not implemented"));
},
[](google::appengine::v1::ListAuthorizedDomainsResponse const&) {
return std::vector<google::appengine::v1::AuthorizedDomain>();
});
return google::cloud::internal::MakeUnimplementedPaginationRange<
StreamRange<google::appengine::v1::AuthorizedDomain>>();
}

std::shared_ptr<AuthorizedDomainsConnection> MakeAuthorizedDomainsConnection(
Expand Down
12 changes: 2 additions & 10 deletions google/cloud/appengine/domain_mappings_connection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,8 @@ DomainMappingsConnection::~DomainMappingsConnection() = default;
StreamRange<google::appengine::v1::DomainMapping>
DomainMappingsConnection::ListDomainMappings(
google::appengine::v1::ListDomainMappingsRequest request) {
return google::cloud::internal::MakePaginationRange<
StreamRange<google::appengine::v1::DomainMapping>>(
std::move(request),
[](google::appengine::v1::ListDomainMappingsRequest const&) {
return StatusOr<google::appengine::v1::ListDomainMappingsResponse>(
Status(StatusCode::kUnimplemented, "not implemented"));
},
[](google::appengine::v1::ListDomainMappingsResponse const&) {
return std::vector<google::appengine::v1::DomainMapping>();
});
return google::cloud::internal::MakeUnimplementedPaginationRange<
StreamRange<google::appengine::v1::DomainMapping>>();
}

StatusOr<google::appengine::v1::DomainMapping>
Expand Down
12 changes: 2 additions & 10 deletions google/cloud/appengine/firewall_connection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,8 @@ FirewallConnection::~FirewallConnection() = default;
StreamRange<google::appengine::v1::FirewallRule>
FirewallConnection::ListIngressRules(
google::appengine::v1::ListIngressRulesRequest request) {
return google::cloud::internal::MakePaginationRange<
StreamRange<google::appengine::v1::FirewallRule>>(
std::move(request),
[](google::appengine::v1::ListIngressRulesRequest const&) {
return StatusOr<google::appengine::v1::ListIngressRulesResponse>(
Status(StatusCode::kUnimplemented, "not implemented"));
},
[](google::appengine::v1::ListIngressRulesResponse const&) {
return std::vector<google::appengine::v1::FirewallRule>();
});
return google::cloud::internal::MakeUnimplementedPaginationRange<
StreamRange<google::appengine::v1::FirewallRule>>();
}

StatusOr<google::appengine::v1::BatchUpdateIngressRulesResponse>
Expand Down
12 changes: 2 additions & 10 deletions google/cloud/appengine/instances_connection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,8 @@ InstancesConnection::~InstancesConnection() = default;

StreamRange<google::appengine::v1::Instance> InstancesConnection::ListInstances(
google::appengine::v1::ListInstancesRequest request) {
return google::cloud::internal::MakePaginationRange<
StreamRange<google::appengine::v1::Instance>>(
std::move(request),
[](google::appengine::v1::ListInstancesRequest const&) {
return StatusOr<google::appengine::v1::ListInstancesResponse>(
Status(StatusCode::kUnimplemented, "not implemented"));
},
[](google::appengine::v1::ListInstancesResponse const&) {
return std::vector<google::appengine::v1::Instance>();
});
return google::cloud::internal::MakeUnimplementedPaginationRange<
StreamRange<google::appengine::v1::Instance>>();
}

StatusOr<google::appengine::v1::Instance> InstancesConnection::GetInstance(
Expand Down
12 changes: 2 additions & 10 deletions google/cloud/appengine/services_connection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,8 @@ ServicesConnection::~ServicesConnection() = default;

StreamRange<google::appengine::v1::Service> ServicesConnection::ListServices(
google::appengine::v1::ListServicesRequest request) {
return google::cloud::internal::MakePaginationRange<
StreamRange<google::appengine::v1::Service>>(
std::move(request),
[](google::appengine::v1::ListServicesRequest const&) {
return StatusOr<google::appengine::v1::ListServicesResponse>(
Status(StatusCode::kUnimplemented, "not implemented"));
},
[](google::appengine::v1::ListServicesResponse const&) {
return std::vector<google::appengine::v1::Service>();
});
return google::cloud::internal::MakeUnimplementedPaginationRange<
StreamRange<google::appengine::v1::Service>>();
}

StatusOr<google::appengine::v1::Service> ServicesConnection::GetService(
Expand Down
12 changes: 2 additions & 10 deletions google/cloud/appengine/versions_connection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,8 @@ VersionsConnection::~VersionsConnection() = default;

StreamRange<google::appengine::v1::Version> VersionsConnection::ListVersions(
google::appengine::v1::ListVersionsRequest request) {
return google::cloud::internal::MakePaginationRange<
StreamRange<google::appengine::v1::Version>>(
std::move(request),
[](google::appengine::v1::ListVersionsRequest const&) {
return StatusOr<google::appengine::v1::ListVersionsResponse>(
Status(StatusCode::kUnimplemented, "not implemented"));
},
[](google::appengine::v1::ListVersionsResponse const&) {
return std::vector<google::appengine::v1::Version>();
});
return google::cloud::internal::MakeUnimplementedPaginationRange<
StreamRange<google::appengine::v1::Version>>();
}

StatusOr<google::appengine::v1::Version> VersionsConnection::GetVersion(
Expand Down
Loading

0 comments on commit ef7628a

Please sign in to comment.