Skip to content

Commit 9c0ff85

Browse files
authored
chore(compute): update discovery doc circa 20241231 (#14933)
1 parent 6accc9d commit 9c0ff85

File tree

541 files changed

+103571
-90923
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

541 files changed

+103571
-90923
lines changed
Binary file not shown.

ci/etc/expected_install_directories

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,10 @@
376376
./include/google/cloud/compute/network_firewall_policies/v1
377377
./include/google/cloud/compute/network_firewall_policies/v1/internal
378378
./include/google/cloud/compute/network_firewall_policies/v1/mocks
379+
./include/google/cloud/compute/network_profiles
380+
./include/google/cloud/compute/network_profiles/v1
381+
./include/google/cloud/compute/network_profiles/v1/internal
382+
./include/google/cloud/compute/network_profiles/v1/mocks
379383
./include/google/cloud/compute/networks
380384
./include/google/cloud/compute/networks/v1
381385
./include/google/cloud/compute/networks/v1/internal

generator/discovery/compute_public_google_rest_v1.json

Lines changed: 76178 additions & 73972 deletions
Large diffs are not rendered by default.

generator/generator_config.textproto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,6 +1655,15 @@ discovery_products {
16551655
generate_grpc_transport: false
16561656
}
16571657
1658+
rest_services {
1659+
service_proto_path: "google/cloud/compute/network_profiles/v1/network_profiles.proto"
1660+
product_path: "google/cloud/compute/network_profiles/v1"
1661+
initial_copyright_year: "2025"
1662+
retryable_status_codes: ["kUnavailable"]
1663+
generate_rest_transport: true
1664+
generate_grpc_transport: false
1665+
}
1666+
16581667
# update_discovery_doc.sh additions
16591668
}
16601669

generator/internal/client_generator.cc

Lines changed: 27 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,7 @@ R"""( std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc<
275275
{deprecation_macro},
276276
{" $return_type$\n"},
277277
// clang-format off
278-
{" $method_name$($request_type$ const& request, Options opts = {});\n"}
279-
// clang-format on
278+
{" $method_name$($request_type$ const& request, Options opts = {});\n"} // clang-format on
280279
},
281280
All(IsNonStreaming, Not(IsLongrunningOperation),
282281
Not(IsPaginated))),
@@ -307,8 +306,7 @@ R"""( std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc<
307306
// clang-format off
308307
" future<Status>\n",
309308
" future<StatusOr<$longrunning_deduced_response_type$>>\n"},
310-
{" $method_name$($longrunning_operation_type$ const& operation, Options opts = {});\n"}
311-
// clang-format on
309+
{" $method_name$($longrunning_operation_type$ const& operation, Options opts = {});\n"} // clang-format on
312310
},
313311
All(IsNonStreaming, IsLongrunningOperation, Not(IsPaginated))),
314312
MethodPattern(
@@ -364,21 +362,21 @@ R"""( std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc<
364362
Not(IsPaginated)))},
365363
__FILE__, __LINE__);
366364
}
367-
HeaderPrintMethod(method,
368-
{MethodPattern(
369-
{
370-
{"\n"},
371-
{FormatMethodCommentsProtobufRequest(
372-
method, IsDiscoveryDocumentProto())},
373-
{deprecation_macro},
374-
{" future<$return_type$>\n"},
375-
// clang-format off
376-
{" Async$method_name$($request_type$ const& request, Options opts = {});\n"}
377-
// clang-format on
378-
},
379-
All(IsNonStreaming, Not(IsLongrunningOperation),
380-
Not(IsPaginated)))},
381-
__FILE__, __LINE__);
365+
HeaderPrintMethod(
366+
method,
367+
{MethodPattern(
368+
{
369+
{"\n"},
370+
{FormatMethodCommentsProtobufRequest(
371+
method, IsDiscoveryDocumentProto())},
372+
{deprecation_macro},
373+
{" future<$return_type$>\n"},
374+
// clang-format off
375+
{" Async$method_name$($request_type$ const& request, Options opts = {});\n"} // clang-format on
376+
},
377+
All(IsNonStreaming, Not(IsLongrunningOperation),
378+
Not(IsPaginated)))},
379+
__FILE__, __LINE__);
382380
}
383381

384382
HeaderPrint( // clang-format off
@@ -473,8 +471,7 @@ std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc<
473471
{" $request_type$ request;\n"},
474472
{method_request_string},
475473
{" return connection_->$method_name$(request);\n"
476-
"}\n"}
477-
// clang-format on
474+
"}\n"} // clang-format on
478475
},
479476
All(IsNonStreaming, Not(IsLongrunningOperation),
480477
Not(IsPaginated))),
@@ -502,8 +499,7 @@ std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc<
502499
{" $request_type$ request;\n"},
503500
{method_request_string},
504501
{" return connection_->$method_name$(NoAwaitTag{}, request);\n"
505-
"}\n"}
506-
// clang-format on
502+
"}\n"} // clang-format on
507503
},
508504
All(IsNonStreaming, IsLongrunningOperation, Not(IsPaginated))),
509505
MethodPattern(
@@ -516,8 +512,7 @@ std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc<
516512
{" $request_type$ request;\n"},
517513
{method_request_string},
518514
{" return connection_->$method_name$(request);\n"
519-
"}\n"}
520-
// clang-format on
515+
"}\n"} // clang-format on
521516
},
522517
All(IsNonStreaming, Not(IsLongrunningOperation), IsPaginated)),
523518
MethodPattern(
@@ -530,8 +525,7 @@ std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc<
530525
{" $request_type$ request;\n"},
531526
{method_request_string},
532527
{" return connection_->$method_name$(request);\n"
533-
"}\n"}
534-
// clang-format on
528+
"}\n"} // clang-format on
535529
},
536530
IsStreamingRead)},
537531
__FILE__, __LINE__);
@@ -606,8 +600,7 @@ std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc<
606600
" internal::OptionsSpan span(internal::MergeOptions("
607601
"std::move(opts), options_));\n"
608602
" return connection_->$method_name$(request);\n"
609-
"}\n"}
610-
// clang-format on
603+
"}\n"} // clang-format on
611604
},
612605
All(IsNonStreaming, Not(IsLongrunningOperation),
613606
Not(IsPaginated))),
@@ -645,8 +638,7 @@ std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc<
645638
" internal::OptionsSpan span(internal::MergeOptions("
646639
"std::move(opts), options_));\n"
647640
" return connection_->$method_name$(operation);\n"},
648-
{"}\n"}
649-
// clang-format on
641+
{"}\n"} // clang-format on
650642
},
651643
All(IsNonStreaming, IsLongrunningOperation, Not(IsPaginated))),
652644
MethodPattern(
@@ -658,8 +650,7 @@ std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc<
658650
" internal::OptionsSpan span(internal::MergeOptions("
659651
"std::move(opts), options_));\n"
660652
" return connection_->$method_name$(std::move(request));\n"
661-
"}\n"}
662-
// clang-format on
653+
"}\n"} // clang-format on
663654
},
664655
All(IsNonStreaming, Not(IsLongrunningOperation), IsPaginated)),
665656
MethodPattern(
@@ -671,8 +662,7 @@ std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc<
671662
" internal::OptionsSpan span(internal::MergeOptions("
672663
"std::move(opts), options_));\n"
673664
" return connection_->$method_name$(request);\n"
674-
"}\n"}
675-
// clang-format on
665+
"}\n"} // clang-format on
676666
},
677667
IsStreamingRead)},
678668
__FILE__, __LINE__);
@@ -701,8 +691,7 @@ std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc<
701691
{" $request_type$ request;\n"},
702692
{method_request_string},
703693
{" return connection_->Async$method_name$(request);\n"
704-
"}\n"}
705-
// clang-format on
694+
"}\n"} // clang-format on
706695
},
707696
All(IsNonStreaming, Not(IsLongrunningOperation),
708697
Not(IsPaginated)))},
@@ -719,8 +708,7 @@ std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc<
719708
" internal::OptionsSpan span(internal::MergeOptions("
720709
"std::move(opts), options_));\n"
721710
" return connection_->Async$method_name$(request);\n"
722-
"}\n"}
723-
// clang-format on
711+
"}\n"} // clang-format on
724712
},
725713
All(IsNonStreaming, Not(IsLongrunningOperation),
726714
Not(IsPaginated)))},

generator/internal/connection_generator.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,7 @@ std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc<
426426
" StatusOr<$longrunning_deduced_response_type$>>(\n"
427427
" Status(StatusCode::kUnimplemented, \"not implemented\"));\n"
428428
"}\n"
429-
}
430-
// clang-format on
429+
} // clang-format on
431430
},
432431
All(IsNonStreaming, IsLongrunningOperation, Not(IsPaginated))),
433432
MethodPattern(

generator/internal/mock_connection_generator.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ class $mock_connection_class_name$ : public $product_namespace$::$connection_cla
149149
" MOCK_METHOD(future<Status>,\n",
150150
" MOCK_METHOD(future<StatusOr<$longrunning_deduced_response_type$>>,\n"},
151151
{" $method_name$, (\n"
152-
" $longrunning_operation_type$ const& operation), (override));\n"}
153-
// clang-format on
152+
" $longrunning_operation_type$ const& operation), (override));\n"} // clang-format on
154153
},
155154
All(IsNonStreaming, IsLongrunningOperation, Not(IsPaginated))),
156155
MethodPattern(

google/cloud/compute/accelerator_types/v1/accelerator_types_client.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class AcceleratorTypesClient {
119119
/// [`StatusOr`]: @ref google::cloud::StatusOr
120120
/// [`Status`]: @ref google::cloud::Status
121121
/// [google.cloud.cpp.compute.accelerator_types.v1.AggregatedListAcceleratorTypesRequest]: @cloud_cpp_reference_link{google/cloud/compute/accelerator_types/v1/accelerator_types.proto#L73}
122-
/// [google.cloud.cpp.compute.v1.AcceleratorTypesScopedList]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_002.proto#L281}
122+
/// [google.cloud.cpp.compute.v1.AcceleratorTypesScopedList]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_002.proto#L285}
123123
///
124124
// clang-format on
125125
StreamRange<std::pair<
@@ -162,7 +162,7 @@ class AcceleratorTypesClient {
162162
/// [`StatusOr`]: @ref google::cloud::StatusOr
163163
/// [`Status`]: @ref google::cloud::Status
164164
/// [google.cloud.cpp.compute.accelerator_types.v1.AggregatedListAcceleratorTypesRequest]: @cloud_cpp_reference_link{google/cloud/compute/accelerator_types/v1/accelerator_types.proto#L73}
165-
/// [google.cloud.cpp.compute.v1.AcceleratorTypesScopedList]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_002.proto#L281}
165+
/// [google.cloud.cpp.compute.v1.AcceleratorTypesScopedList]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_002.proto#L285}
166166
///
167167
// clang-format on
168168
StreamRange<std::pair<

google/cloud/compute/addresses/v1/addresses_client.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class AddressesClient {
116116
/// [`StatusOr`]: @ref google::cloud::StatusOr
117117
/// [`Status`]: @ref google::cloud::Status
118118
/// [google.cloud.cpp.compute.addresses.v1.AggregatedListAddressesRequest]: @cloud_cpp_reference_link{google/cloud/compute/addresses/v1/addresses.proto#L125}
119-
/// [google.cloud.cpp.compute.v1.AddressesScopedList]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_005.proto#L135}
119+
/// [google.cloud.cpp.compute.v1.AddressesScopedList]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_005.proto#L137}
120120
///
121121
// clang-format on
122122
StreamRange<std::pair<std::string,
@@ -158,7 +158,7 @@ class AddressesClient {
158158
/// [`StatusOr`]: @ref google::cloud::StatusOr
159159
/// [`Status`]: @ref google::cloud::Status
160160
/// [google.cloud.cpp.compute.addresses.v1.AggregatedListAddressesRequest]: @cloud_cpp_reference_link{google/cloud/compute/addresses/v1/addresses.proto#L125}
161-
/// [google.cloud.cpp.compute.v1.AddressesScopedList]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_005.proto#L135}
161+
/// [google.cloud.cpp.compute.v1.AddressesScopedList]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_005.proto#L137}
162162
///
163163
// clang-format on
164164
StreamRange<std::pair<std::string,

google/cloud/compute/addresses/v1/addresses_proto_export.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <google/cloud/compute/v1/internal/common_004.pb.h>
3030
#include <google/cloud/compute/v1/internal/common_005.pb.h>
3131
#include <google/cloud/compute/v1/internal/common_016.pb.h>
32-
#include <google/cloud/compute/v1/internal/common_101.pb.h>
32+
#include <google/cloud/compute/v1/internal/common_103.pb.h>
3333
// IWYU pragma: end_exports
3434

3535
#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_COMPUTE_ADDRESSES_V1_ADDRESSES_PROTO_EXPORT_H

0 commit comments

Comments
 (0)