You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Remove ActivateSpoke and DeactivateSpoke methods (#69)
- [ ] Regenerate this pull request now.
PiperOrigin-RevId: 392500501
Source-Link: googleapis/googleapis@d06d94e
Source-Link: googleapis/googleapis-gen@b368af0
feat: Add hub.routing_vpcs field
docs: Specify that site_to_site_data_transfer field must be set to true
Copy file name to clipboardExpand all lines: packages/google-cloud-network-connectivity/google/cloud/networkconnectivity_v1/services/hub_service/async_client.py
on the ``request`` instance; if ``request`` is provided, this
1026
-
should not be set.
1027
-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
1028
-
should be retried.
1029
-
timeout (float): The timeout for this request.
1030
-
metadata (Sequence[Tuple[str, str]]): Strings which should be
1031
-
sent along with the request as metadata.
1032
-
1033
-
Returns:
1034
-
google.api_core.operation_async.AsyncOperation:
1035
-
An object representing a long-running operation.
1036
-
1037
-
The result type for the operation will be :class:`google.cloud.networkconnectivity_v1.types.Spoke` A spoke represents a connection between your Google Cloud network resources
1038
-
and a non-Google-Cloud network.
1039
-
1040
-
When you create a spoke, you associate it with a hub.
1041
-
You must also identify a value for exactly one of the
1042
-
following fields:
1043
-
1044
-
- linked_vpn_tunnels
1045
-
- linked_interconnect_attachments
1046
-
- linked_router_appliance_instances
1047
-
1048
-
"""
1049
-
# Create or coerce a protobuf request object.
1050
-
# Sanity check: If we got a request object, we should *not* have
1051
-
# gotten any keyword arguments that map to the request.
1052
-
has_flattened_params=any([name])
1053
-
ifrequestisnotNoneandhas_flattened_params:
1054
-
raiseValueError(
1055
-
"If the `request` argument is set, then none of "
1056
-
"the individual field arguments should be set."
1057
-
)
1058
-
1059
-
request=hub.DeactivateSpokeRequest(request)
1060
-
1061
-
# If we have keyword arguments corresponding to fields on the
1062
-
# request, apply these.
1063
-
ifnameisnotNone:
1064
-
request.name=name
1065
-
1066
-
# Wrap the RPC method; this adds retry and timeout information,
1067
-
# and friendly error handling.
1068
-
rpc=gapic_v1.method_async.wrap_method(
1069
-
self._client._transport.deactivate_spoke,
1070
-
default_timeout=60.0,
1071
-
client_info=DEFAULT_CLIENT_INFO,
1072
-
)
1073
-
1074
-
# Certain fields should be provided within the metadata header;
on the ``request`` instance; if ``request`` is provided, this
1117
-
should not be set.
1118
-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
1119
-
should be retried.
1120
-
timeout (float): The timeout for this request.
1121
-
metadata (Sequence[Tuple[str, str]]): Strings which should be
1122
-
sent along with the request as metadata.
1123
-
1124
-
Returns:
1125
-
google.api_core.operation_async.AsyncOperation:
1126
-
An object representing a long-running operation.
1127
-
1128
-
The result type for the operation will be :class:`google.cloud.networkconnectivity_v1.types.Spoke` A spoke represents a connection between your Google Cloud network resources
1129
-
and a non-Google-Cloud network.
1130
-
1131
-
When you create a spoke, you associate it with a hub.
1132
-
You must also identify a value for exactly one of the
1133
-
following fields:
1134
-
1135
-
- linked_vpn_tunnels
1136
-
- linked_interconnect_attachments
1137
-
- linked_router_appliance_instances
1138
-
1139
-
"""
1140
-
# Create or coerce a protobuf request object.
1141
-
# Sanity check: If we got a request object, we should *not* have
1142
-
# gotten any keyword arguments that map to the request.
1143
-
has_flattened_params=any([name])
1144
-
ifrequestisnotNoneandhas_flattened_params:
1145
-
raiseValueError(
1146
-
"If the `request` argument is set, then none of "
1147
-
"the individual field arguments should be set."
1148
-
)
1149
-
1150
-
request=hub.ActivateSpokeRequest(request)
1151
-
1152
-
# If we have keyword arguments corresponding to fields on the
1153
-
# request, apply these.
1154
-
ifnameisnotNone:
1155
-
request.name=name
1156
-
1157
-
# Wrap the RPC method; this adds retry and timeout information,
1158
-
# and friendly error handling.
1159
-
rpc=gapic_v1.method_async.wrap_method(
1160
-
self._client._transport.activate_spoke,
1161
-
default_timeout=60.0,
1162
-
client_info=DEFAULT_CLIENT_INFO,
1163
-
)
1164
-
1165
-
# Certain fields should be provided within the metadata header;
0 commit comments