google-apis-networkconnectivity_v1 0.24.0 → 0.26.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -461,6 +461,127 @@ module Google
461
461
  execute_or_queue_command(command, &block)
462
462
  end
463
463
 
464
+ # Gets the access control policy for a resource. Returns an empty policy if the
465
+ # resource exists and does not have a policy set.
466
+ # @param [String] resource
467
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
468
+ # names](https://cloud.google.com/apis/design/resource_names) for the
469
+ # appropriate value for this field.
470
+ # @param [Fixnum] options_requested_policy_version
471
+ # Optional. The maximum policy version that will be used to format the policy.
472
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
473
+ # rejected. Requests for policies with any conditional role bindings must
474
+ # specify version 3. Policies with no conditional role bindings may specify any
475
+ # valid value or leave the field unset. The policy in the response might use the
476
+ # policy version that you specified, or it might use a lower policy version. For
477
+ # example, if you specify version 3, but the policy has no conditional role
478
+ # bindings, the response uses version 1. To learn which resources support
479
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
480
+ # google.com/iam/help/conditions/resource-policies).
481
+ # @param [String] fields
482
+ # Selector specifying which fields to include in a partial response.
483
+ # @param [String] quota_user
484
+ # Available to use for quota purposes for server-side applications. Can be any
485
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
486
+ # @param [Google::Apis::RequestOptions] options
487
+ # Request-specific options
488
+ #
489
+ # @yield [result, err] Result & error if block supplied
490
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
491
+ # @yieldparam err [StandardError] error object if request failed
492
+ #
493
+ # @return [Google::Apis::NetworkconnectivityV1::Policy]
494
+ #
495
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
496
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
497
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
498
+ def get_project_location_global_hub_group_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
499
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
500
+ command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
501
+ command.response_class = Google::Apis::NetworkconnectivityV1::Policy
502
+ command.params['resource'] = resource unless resource.nil?
503
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
504
+ command.query['fields'] = fields unless fields.nil?
505
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
506
+ execute_or_queue_command(command, &block)
507
+ end
508
+
509
+ # Sets the access control policy on the specified resource. Replaces any
510
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
511
+ # PERMISSION_DENIED` errors.
512
+ # @param [String] resource
513
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
514
+ # names](https://cloud.google.com/apis/design/resource_names) for the
515
+ # appropriate value for this field.
516
+ # @param [Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest] set_iam_policy_request_object
517
+ # @param [String] fields
518
+ # Selector specifying which fields to include in a partial response.
519
+ # @param [String] quota_user
520
+ # Available to use for quota purposes for server-side applications. Can be any
521
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
522
+ # @param [Google::Apis::RequestOptions] options
523
+ # Request-specific options
524
+ #
525
+ # @yield [result, err] Result & error if block supplied
526
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
527
+ # @yieldparam err [StandardError] error object if request failed
528
+ #
529
+ # @return [Google::Apis::NetworkconnectivityV1::Policy]
530
+ #
531
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
532
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
533
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
534
+ def set_group_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
535
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
536
+ command.request_representation = Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest::Representation
537
+ command.request_object = set_iam_policy_request_object
538
+ command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
539
+ command.response_class = Google::Apis::NetworkconnectivityV1::Policy
540
+ command.params['resource'] = resource unless resource.nil?
541
+ command.query['fields'] = fields unless fields.nil?
542
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
543
+ execute_or_queue_command(command, &block)
544
+ end
545
+
546
+ # Returns permissions that a caller has on the specified resource. If the
547
+ # resource does not exist, this will return an empty set of permissions, not a `
548
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
549
+ # permission-aware UIs and command-line tools, not for authorization checking.
550
+ # This operation may "fail open" without warning.
551
+ # @param [String] resource
552
+ # REQUIRED: The resource for which the policy detail is being requested. See [
553
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
554
+ # appropriate value for this field.
555
+ # @param [Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest] test_iam_permissions_request_object
556
+ # @param [String] fields
557
+ # Selector specifying which fields to include in a partial response.
558
+ # @param [String] quota_user
559
+ # Available to use for quota purposes for server-side applications. Can be any
560
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
561
+ # @param [Google::Apis::RequestOptions] options
562
+ # Request-specific options
563
+ #
564
+ # @yield [result, err] Result & error if block supplied
565
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse] parsed result object
566
+ # @yieldparam err [StandardError] error object if request failed
567
+ #
568
+ # @return [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse]
569
+ #
570
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
571
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
572
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
573
+ def test_group_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
574
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
575
+ command.request_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest::Representation
576
+ command.request_object = test_iam_permissions_request_object
577
+ command.response_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse::Representation
578
+ command.response_class = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse
579
+ command.params['resource'] = resource unless resource.nil?
580
+ command.query['fields'] = fields unless fields.nil?
581
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
582
+ execute_or_queue_command(command, &block)
583
+ end
584
+
464
585
  # Gets the access control policy for a resource. Returns an empty policy if the
465
586
  # resource exists and does not have a policy set.
466
587
  # @param [String] resource
@@ -944,59 +1065,20 @@ module Google
944
1065
  execute_or_queue_command(command, &block)
945
1066
  end
946
1067
 
947
- # Gets the access control policy for a resource. Returns an empty policy if the
948
- # resource exists and does not have a policy set.
949
- # @param [String] resource
950
- # REQUIRED: The resource for which the policy is being requested. See [Resource
951
- # names](https://cloud.google.com/apis/design/resource_names) for the
952
- # appropriate value for this field.
953
- # @param [Fixnum] options_requested_policy_version
954
- # Optional. The maximum policy version that will be used to format the policy.
955
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
956
- # rejected. Requests for policies with any conditional role bindings must
957
- # specify version 3. Policies with no conditional role bindings may specify any
958
- # valid value or leave the field unset. The policy in the response might use the
959
- # policy version that you specified, or it might use a lower policy version. For
960
- # example, if you specify version 3, but the policy has no conditional role
961
- # bindings, the response uses version 1. To learn which resources support
962
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
963
- # google.com/iam/help/conditions/resource-policies).
964
- # @param [String] fields
965
- # Selector specifying which fields to include in a partial response.
966
- # @param [String] quota_user
967
- # Available to use for quota purposes for server-side applications. Can be any
968
- # arbitrary string assigned to a user, but should not exceed 40 characters.
969
- # @param [Google::Apis::RequestOptions] options
970
- # Request-specific options
971
- #
972
- # @yield [result, err] Result & error if block supplied
973
- # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
974
- # @yieldparam err [StandardError] error object if request failed
975
- #
976
- # @return [Google::Apis::NetworkconnectivityV1::Policy]
977
- #
978
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
979
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
980
- # @raise [Google::Apis::AuthorizationError] Authorization is required
981
- def get_project_location_service_class_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
982
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
983
- command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
984
- command.response_class = Google::Apis::NetworkconnectivityV1::Policy
985
- command.params['resource'] = resource unless resource.nil?
986
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
987
- command.query['fields'] = fields unless fields.nil?
988
- command.query['quotaUser'] = quota_user unless quota_user.nil?
989
- execute_or_queue_command(command, &block)
990
- end
991
-
992
- # Sets the access control policy on the specified resource. Replaces any
993
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
994
- # PERMISSION_DENIED` errors.
995
- # @param [String] resource
996
- # REQUIRED: The resource for which the policy is being specified. See [Resource
997
- # names](https://cloud.google.com/apis/design/resource_names) for the
998
- # appropriate value for this field.
999
- # @param [Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest] set_iam_policy_request_object
1068
+ # Deletes a single ServiceClass.
1069
+ # @param [String] name
1070
+ # Required. The name of the ServiceClass to delete.
1071
+ # @param [String] request_id
1072
+ # Optional. An optional request ID to identify requests. Specify a unique
1073
+ # request ID so that if you must retry your request, the server will know to
1074
+ # ignore the request if it has already been completed. The server will guarantee
1075
+ # that for at least 60 minutes after the first request. For example, consider a
1076
+ # situation where you make an initial request and the request times out. If you
1077
+ # make the request again with the same request ID, the server can check if
1078
+ # original operation with the same request ID was received, and if so, will
1079
+ # ignore the second request. This prevents clients from accidentally creating
1080
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1081
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1000
1082
  # @param [String] fields
1001
1083
  # Selector specifying which fields to include in a partial response.
1002
1084
  # @param [String] quota_user
@@ -1006,36 +1088,28 @@ module Google
1006
1088
  # Request-specific options
1007
1089
  #
1008
1090
  # @yield [result, err] Result & error if block supplied
1009
- # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1091
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1010
1092
  # @yieldparam err [StandardError] error object if request failed
1011
1093
  #
1012
- # @return [Google::Apis::NetworkconnectivityV1::Policy]
1094
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1013
1095
  #
1014
1096
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1015
1097
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1016
1098
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1017
- def set_service_class_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1018
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1019
- command.request_representation = Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest::Representation
1020
- command.request_object = set_iam_policy_request_object
1021
- command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1022
- command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1023
- command.params['resource'] = resource unless resource.nil?
1099
+ def delete_project_location_service_class(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1100
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1101
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
1102
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
1103
+ command.params['name'] = name unless name.nil?
1104
+ command.query['requestId'] = request_id unless request_id.nil?
1024
1105
  command.query['fields'] = fields unless fields.nil?
1025
1106
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1026
1107
  execute_or_queue_command(command, &block)
1027
1108
  end
1028
1109
 
1029
- # Returns permissions that a caller has on the specified resource. If the
1030
- # resource does not exist, this will return an empty set of permissions, not a `
1031
- # NOT_FOUND` error. Note: This operation is designed to be used for building
1032
- # permission-aware UIs and command-line tools, not for authorization checking.
1033
- # This operation may "fail open" without warning.
1034
- # @param [String] resource
1035
- # REQUIRED: The resource for which the policy detail is being requested. See [
1036
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1037
- # appropriate value for this field.
1038
- # @param [Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1110
+ # Gets details of a single ServiceClass.
1111
+ # @param [String] name
1112
+ # Required. Name of the ServiceClass to get.
1039
1113
  # @param [String] fields
1040
1114
  # Selector specifying which fields to include in a partial response.
1041
1115
  # @param [String] quota_user
@@ -1045,21 +1119,19 @@ module Google
1045
1119
  # Request-specific options
1046
1120
  #
1047
1121
  # @yield [result, err] Result & error if block supplied
1048
- # @yieldparam result [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse] parsed result object
1122
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ServiceClass] parsed result object
1049
1123
  # @yieldparam err [StandardError] error object if request failed
1050
1124
  #
1051
- # @return [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse]
1125
+ # @return [Google::Apis::NetworkconnectivityV1::ServiceClass]
1052
1126
  #
1053
1127
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1054
1128
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1055
1129
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1056
- def test_service_class_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1057
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1058
- command.request_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest::Representation
1059
- command.request_object = test_iam_permissions_request_object
1060
- command.response_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse::Representation
1061
- command.response_class = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse
1062
- command.params['resource'] = resource unless resource.nil?
1130
+ def get_project_location_service_class(name, fields: nil, quota_user: nil, options: nil, &block)
1131
+ command = make_simple_command(:get, 'v1/{+name}', options)
1132
+ command.response_representation = Google::Apis::NetworkconnectivityV1::ServiceClass::Representation
1133
+ command.response_class = Google::Apis::NetworkconnectivityV1::ServiceClass
1134
+ command.params['name'] = name unless name.nil?
1063
1135
  command.query['fields'] = fields unless fields.nil?
1064
1136
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1065
1137
  execute_or_queue_command(command, &block)
@@ -1099,7 +1171,7 @@ module Google
1099
1171
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1100
1172
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1101
1173
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1102
- def get_project_location_service_connection_map_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1174
+ def get_project_location_service_class_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1103
1175
  command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1104
1176
  command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1105
1177
  command.response_class = Google::Apis::NetworkconnectivityV1::Policy
@@ -1110,14 +1182,17 @@ module Google
1110
1182
  execute_or_queue_command(command, &block)
1111
1183
  end
1112
1184
 
1113
- # Sets the access control policy on the specified resource. Replaces any
1114
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1115
- # PERMISSION_DENIED` errors.
1116
- # @param [String] resource
1117
- # REQUIRED: The resource for which the policy is being specified. See [Resource
1118
- # names](https://cloud.google.com/apis/design/resource_names) for the
1119
- # appropriate value for this field.
1120
- # @param [Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest] set_iam_policy_request_object
1185
+ # Lists ServiceClasses in a given project and location.
1186
+ # @param [String] parent
1187
+ # Required. The parent resource's name.
1188
+ # @param [String] filter
1189
+ # A filter expression that filters the results listed in the response.
1190
+ # @param [String] order_by
1191
+ # Sort the results by a certain order.
1192
+ # @param [Fixnum] page_size
1193
+ # The maximum number of results per page that should be returned.
1194
+ # @param [String] page_token
1195
+ # The page token.
1121
1196
  # @param [String] fields
1122
1197
  # Selector specifying which fields to include in a partial response.
1123
1198
  # @param [String] quota_user
@@ -1127,27 +1202,459 @@ module Google
1127
1202
  # Request-specific options
1128
1203
  #
1129
1204
  # @yield [result, err] Result & error if block supplied
1130
- # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1205
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ListServiceClassesResponse] parsed result object
1131
1206
  # @yieldparam err [StandardError] error object if request failed
1132
1207
  #
1133
- # @return [Google::Apis::NetworkconnectivityV1::Policy]
1208
+ # @return [Google::Apis::NetworkconnectivityV1::ListServiceClassesResponse]
1134
1209
  #
1135
1210
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1136
1211
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1137
1212
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1138
- def set_service_connection_map_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1139
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1140
- command.request_representation = Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest::Representation
1141
- command.request_object = set_iam_policy_request_object
1142
- command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1143
- command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1144
- command.params['resource'] = resource unless resource.nil?
1213
+ def list_project_location_service_classes(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1214
+ command = make_simple_command(:get, 'v1/{+parent}/serviceClasses', options)
1215
+ command.response_representation = Google::Apis::NetworkconnectivityV1::ListServiceClassesResponse::Representation
1216
+ command.response_class = Google::Apis::NetworkconnectivityV1::ListServiceClassesResponse
1217
+ command.params['parent'] = parent unless parent.nil?
1218
+ command.query['filter'] = filter unless filter.nil?
1219
+ command.query['orderBy'] = order_by unless order_by.nil?
1220
+ command.query['pageSize'] = page_size unless page_size.nil?
1221
+ command.query['pageToken'] = page_token unless page_token.nil?
1145
1222
  command.query['fields'] = fields unless fields.nil?
1146
1223
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1147
1224
  execute_or_queue_command(command, &block)
1148
1225
  end
1149
1226
 
1150
- # Returns permissions that a caller has on the specified resource. If the
1227
+ # Updates the parameters of a single ServiceClass.
1228
+ # @param [String] name
1229
+ # Immutable. The name of a ServiceClass resource. Format: projects/`project`/
1230
+ # locations/`location`/serviceClasses/`service_class` See: https://google.aip.
1231
+ # dev/122#fields-representing-resource-names
1232
+ # @param [Google::Apis::NetworkconnectivityV1::ServiceClass] service_class_object
1233
+ # @param [String] request_id
1234
+ # Optional. An optional request ID to identify requests. Specify a unique
1235
+ # request ID so that if you must retry your request, the server will know to
1236
+ # ignore the request if it has already been completed. The server will guarantee
1237
+ # that for at least 60 minutes since the first request. For example, consider a
1238
+ # situation where you make an initial request and the request times out. If you
1239
+ # make the request again with the same request ID, the server can check if
1240
+ # original operation with the same request ID was received, and if so, will
1241
+ # ignore the second request. This prevents clients from accidentally creating
1242
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1243
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1244
+ # @param [String] update_mask
1245
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1246
+ # ServiceClass resource by the update. The fields specified in the update_mask
1247
+ # are relative to the resource, not the full request. A field will be
1248
+ # overwritten if it is in the mask. If the user does not provide a mask then all
1249
+ # fields will be overwritten.
1250
+ # @param [String] fields
1251
+ # Selector specifying which fields to include in a partial response.
1252
+ # @param [String] quota_user
1253
+ # Available to use for quota purposes for server-side applications. Can be any
1254
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1255
+ # @param [Google::Apis::RequestOptions] options
1256
+ # Request-specific options
1257
+ #
1258
+ # @yield [result, err] Result & error if block supplied
1259
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1260
+ # @yieldparam err [StandardError] error object if request failed
1261
+ #
1262
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1263
+ #
1264
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1265
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1266
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1267
+ def patch_project_location_service_class(name, service_class_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1268
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1269
+ command.request_representation = Google::Apis::NetworkconnectivityV1::ServiceClass::Representation
1270
+ command.request_object = service_class_object
1271
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
1272
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
1273
+ command.params['name'] = name unless name.nil?
1274
+ command.query['requestId'] = request_id unless request_id.nil?
1275
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1276
+ command.query['fields'] = fields unless fields.nil?
1277
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1278
+ execute_or_queue_command(command, &block)
1279
+ end
1280
+
1281
+ # Sets the access control policy on the specified resource. Replaces any
1282
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1283
+ # PERMISSION_DENIED` errors.
1284
+ # @param [String] resource
1285
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1286
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1287
+ # appropriate value for this field.
1288
+ # @param [Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest] set_iam_policy_request_object
1289
+ # @param [String] fields
1290
+ # Selector specifying which fields to include in a partial response.
1291
+ # @param [String] quota_user
1292
+ # Available to use for quota purposes for server-side applications. Can be any
1293
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1294
+ # @param [Google::Apis::RequestOptions] options
1295
+ # Request-specific options
1296
+ #
1297
+ # @yield [result, err] Result & error if block supplied
1298
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1299
+ # @yieldparam err [StandardError] error object if request failed
1300
+ #
1301
+ # @return [Google::Apis::NetworkconnectivityV1::Policy]
1302
+ #
1303
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1304
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1305
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1306
+ def set_service_class_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1307
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1308
+ command.request_representation = Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest::Representation
1309
+ command.request_object = set_iam_policy_request_object
1310
+ command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1311
+ command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1312
+ command.params['resource'] = resource unless resource.nil?
1313
+ command.query['fields'] = fields unless fields.nil?
1314
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1315
+ execute_or_queue_command(command, &block)
1316
+ end
1317
+
1318
+ # Returns permissions that a caller has on the specified resource. If the
1319
+ # resource does not exist, this will return an empty set of permissions, not a `
1320
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1321
+ # permission-aware UIs and command-line tools, not for authorization checking.
1322
+ # This operation may "fail open" without warning.
1323
+ # @param [String] resource
1324
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1325
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1326
+ # appropriate value for this field.
1327
+ # @param [Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1328
+ # @param [String] fields
1329
+ # Selector specifying which fields to include in a partial response.
1330
+ # @param [String] quota_user
1331
+ # Available to use for quota purposes for server-side applications. Can be any
1332
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1333
+ # @param [Google::Apis::RequestOptions] options
1334
+ # Request-specific options
1335
+ #
1336
+ # @yield [result, err] Result & error if block supplied
1337
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse] parsed result object
1338
+ # @yieldparam err [StandardError] error object if request failed
1339
+ #
1340
+ # @return [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse]
1341
+ #
1342
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1343
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1344
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1345
+ def test_service_class_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1346
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1347
+ command.request_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest::Representation
1348
+ command.request_object = test_iam_permissions_request_object
1349
+ command.response_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse::Representation
1350
+ command.response_class = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse
1351
+ command.params['resource'] = resource unless resource.nil?
1352
+ command.query['fields'] = fields unless fields.nil?
1353
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1354
+ execute_or_queue_command(command, &block)
1355
+ end
1356
+
1357
+ # Creates a new ServiceConnectionMap in a given project and location.
1358
+ # @param [String] parent
1359
+ # Required. The parent resource's name of the ServiceConnectionMap.
1360
+ # @param [Google::Apis::NetworkconnectivityV1::ServiceConnectionMap] service_connection_map_object
1361
+ # @param [String] request_id
1362
+ # Optional. An optional request ID to identify requests. Specify a unique
1363
+ # request ID so that if you must retry your request, the server will know to
1364
+ # ignore the request if it has already been completed. The server will guarantee
1365
+ # that for at least 60 minutes since the first request. For example, consider a
1366
+ # situation where you make an initial request and the request times out. If you
1367
+ # make the request again with the same request ID, the server can check if
1368
+ # original operation with the same request ID was received, and if so, will
1369
+ # ignore the second request. This prevents clients from accidentally creating
1370
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1371
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1372
+ # @param [String] service_connection_map_id
1373
+ # Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/
1374
+ # serviceConnectionMaps/foo') See https://google.aip.dev/122#resource-id-
1375
+ # segments Unique per location. If one is not provided, one will be generated.
1376
+ # @param [String] fields
1377
+ # Selector specifying which fields to include in a partial response.
1378
+ # @param [String] quota_user
1379
+ # Available to use for quota purposes for server-side applications. Can be any
1380
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1381
+ # @param [Google::Apis::RequestOptions] options
1382
+ # Request-specific options
1383
+ #
1384
+ # @yield [result, err] Result & error if block supplied
1385
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1386
+ # @yieldparam err [StandardError] error object if request failed
1387
+ #
1388
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1389
+ #
1390
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1391
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1392
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1393
+ def create_project_location_service_connection_map(parent, service_connection_map_object = nil, request_id: nil, service_connection_map_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1394
+ command = make_simple_command(:post, 'v1/{+parent}/serviceConnectionMaps', options)
1395
+ command.request_representation = Google::Apis::NetworkconnectivityV1::ServiceConnectionMap::Representation
1396
+ command.request_object = service_connection_map_object
1397
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
1398
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
1399
+ command.params['parent'] = parent unless parent.nil?
1400
+ command.query['requestId'] = request_id unless request_id.nil?
1401
+ command.query['serviceConnectionMapId'] = service_connection_map_id unless service_connection_map_id.nil?
1402
+ command.query['fields'] = fields unless fields.nil?
1403
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1404
+ execute_or_queue_command(command, &block)
1405
+ end
1406
+
1407
+ # Deletes a single ServiceConnectionMap.
1408
+ # @param [String] name
1409
+ # Required. The name of the ServiceConnectionMap to delete.
1410
+ # @param [String] request_id
1411
+ # Optional. An optional request ID to identify requests. Specify a unique
1412
+ # request ID so that if you must retry your request, the server will know to
1413
+ # ignore the request if it has already been completed. The server will guarantee
1414
+ # that for at least 60 minutes after the first request. For example, consider a
1415
+ # situation where you make an initial request and the request times out. If you
1416
+ # make the request again with the same request ID, the server can check if
1417
+ # original operation with the same request ID was received, and if so, will
1418
+ # ignore the second request. This prevents clients from accidentally creating
1419
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1420
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1421
+ # @param [String] fields
1422
+ # Selector specifying which fields to include in a partial response.
1423
+ # @param [String] quota_user
1424
+ # Available to use for quota purposes for server-side applications. Can be any
1425
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1426
+ # @param [Google::Apis::RequestOptions] options
1427
+ # Request-specific options
1428
+ #
1429
+ # @yield [result, err] Result & error if block supplied
1430
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1431
+ # @yieldparam err [StandardError] error object if request failed
1432
+ #
1433
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1434
+ #
1435
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1436
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1437
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1438
+ def delete_project_location_service_connection_map(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1439
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1440
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
1441
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
1442
+ command.params['name'] = name unless name.nil?
1443
+ command.query['requestId'] = request_id unless request_id.nil?
1444
+ command.query['fields'] = fields unless fields.nil?
1445
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1446
+ execute_or_queue_command(command, &block)
1447
+ end
1448
+
1449
+ # Gets details of a single ServiceConnectionMap.
1450
+ # @param [String] name
1451
+ # Required. Name of the ServiceConnectionMap to get.
1452
+ # @param [String] fields
1453
+ # Selector specifying which fields to include in a partial response.
1454
+ # @param [String] quota_user
1455
+ # Available to use for quota purposes for server-side applications. Can be any
1456
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1457
+ # @param [Google::Apis::RequestOptions] options
1458
+ # Request-specific options
1459
+ #
1460
+ # @yield [result, err] Result & error if block supplied
1461
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ServiceConnectionMap] parsed result object
1462
+ # @yieldparam err [StandardError] error object if request failed
1463
+ #
1464
+ # @return [Google::Apis::NetworkconnectivityV1::ServiceConnectionMap]
1465
+ #
1466
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1467
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1468
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1469
+ def get_project_location_service_connection_map(name, fields: nil, quota_user: nil, options: nil, &block)
1470
+ command = make_simple_command(:get, 'v1/{+name}', options)
1471
+ command.response_representation = Google::Apis::NetworkconnectivityV1::ServiceConnectionMap::Representation
1472
+ command.response_class = Google::Apis::NetworkconnectivityV1::ServiceConnectionMap
1473
+ command.params['name'] = name unless name.nil?
1474
+ command.query['fields'] = fields unless fields.nil?
1475
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1476
+ execute_or_queue_command(command, &block)
1477
+ end
1478
+
1479
+ # Gets the access control policy for a resource. Returns an empty policy if the
1480
+ # resource exists and does not have a policy set.
1481
+ # @param [String] resource
1482
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
1483
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1484
+ # appropriate value for this field.
1485
+ # @param [Fixnum] options_requested_policy_version
1486
+ # Optional. The maximum policy version that will be used to format the policy.
1487
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1488
+ # rejected. Requests for policies with any conditional role bindings must
1489
+ # specify version 3. Policies with no conditional role bindings may specify any
1490
+ # valid value or leave the field unset. The policy in the response might use the
1491
+ # policy version that you specified, or it might use a lower policy version. For
1492
+ # example, if you specify version 3, but the policy has no conditional role
1493
+ # bindings, the response uses version 1. To learn which resources support
1494
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1495
+ # google.com/iam/help/conditions/resource-policies).
1496
+ # @param [String] fields
1497
+ # Selector specifying which fields to include in a partial response.
1498
+ # @param [String] quota_user
1499
+ # Available to use for quota purposes for server-side applications. Can be any
1500
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1501
+ # @param [Google::Apis::RequestOptions] options
1502
+ # Request-specific options
1503
+ #
1504
+ # @yield [result, err] Result & error if block supplied
1505
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1506
+ # @yieldparam err [StandardError] error object if request failed
1507
+ #
1508
+ # @return [Google::Apis::NetworkconnectivityV1::Policy]
1509
+ #
1510
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1511
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1512
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1513
+ def get_project_location_service_connection_map_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1514
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1515
+ command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1516
+ command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1517
+ command.params['resource'] = resource unless resource.nil?
1518
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1519
+ command.query['fields'] = fields unless fields.nil?
1520
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1521
+ execute_or_queue_command(command, &block)
1522
+ end
1523
+
1524
+ # Lists ServiceConnectionMaps in a given project and location.
1525
+ # @param [String] parent
1526
+ # Required. The parent resource's name.
1527
+ # @param [String] filter
1528
+ # A filter expression that filters the results listed in the response.
1529
+ # @param [String] order_by
1530
+ # Sort the results by a certain order.
1531
+ # @param [Fixnum] page_size
1532
+ # The maximum number of results per page that should be returned.
1533
+ # @param [String] page_token
1534
+ # The page token.
1535
+ # @param [String] fields
1536
+ # Selector specifying which fields to include in a partial response.
1537
+ # @param [String] quota_user
1538
+ # Available to use for quota purposes for server-side applications. Can be any
1539
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1540
+ # @param [Google::Apis::RequestOptions] options
1541
+ # Request-specific options
1542
+ #
1543
+ # @yield [result, err] Result & error if block supplied
1544
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ListServiceConnectionMapsResponse] parsed result object
1545
+ # @yieldparam err [StandardError] error object if request failed
1546
+ #
1547
+ # @return [Google::Apis::NetworkconnectivityV1::ListServiceConnectionMapsResponse]
1548
+ #
1549
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1550
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1551
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1552
+ def list_project_location_service_connection_maps(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1553
+ command = make_simple_command(:get, 'v1/{+parent}/serviceConnectionMaps', options)
1554
+ command.response_representation = Google::Apis::NetworkconnectivityV1::ListServiceConnectionMapsResponse::Representation
1555
+ command.response_class = Google::Apis::NetworkconnectivityV1::ListServiceConnectionMapsResponse
1556
+ command.params['parent'] = parent unless parent.nil?
1557
+ command.query['filter'] = filter unless filter.nil?
1558
+ command.query['orderBy'] = order_by unless order_by.nil?
1559
+ command.query['pageSize'] = page_size unless page_size.nil?
1560
+ command.query['pageToken'] = page_token unless page_token.nil?
1561
+ command.query['fields'] = fields unless fields.nil?
1562
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1563
+ execute_or_queue_command(command, &block)
1564
+ end
1565
+
1566
+ # Updates the parameters of a single ServiceConnectionMap.
1567
+ # @param [String] name
1568
+ # Immutable. The name of a ServiceConnectionMap. Format: projects/`project`/
1569
+ # locations/`location`/serviceConnectionMaps/`service_connection_map` See: https:
1570
+ # //google.aip.dev/122#fields-representing-resource-names
1571
+ # @param [Google::Apis::NetworkconnectivityV1::ServiceConnectionMap] service_connection_map_object
1572
+ # @param [String] request_id
1573
+ # Optional. An optional request ID to identify requests. Specify a unique
1574
+ # request ID so that if you must retry your request, the server will know to
1575
+ # ignore the request if it has already been completed. The server will guarantee
1576
+ # that for at least 60 minutes since the first request. For example, consider a
1577
+ # situation where you make an initial request and the request times out. If you
1578
+ # make the request again with the same request ID, the server can check if
1579
+ # original operation with the same request ID was received, and if so, will
1580
+ # ignore the second request. This prevents clients from accidentally creating
1581
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1582
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1583
+ # @param [String] update_mask
1584
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1585
+ # ServiceConnectionMap resource by the update. The fields specified in the
1586
+ # update_mask are relative to the resource, not the full request. A field will
1587
+ # be overwritten if it is in the mask. If the user does not provide a mask then
1588
+ # all fields will be overwritten.
1589
+ # @param [String] fields
1590
+ # Selector specifying which fields to include in a partial response.
1591
+ # @param [String] quota_user
1592
+ # Available to use for quota purposes for server-side applications. Can be any
1593
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1594
+ # @param [Google::Apis::RequestOptions] options
1595
+ # Request-specific options
1596
+ #
1597
+ # @yield [result, err] Result & error if block supplied
1598
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1599
+ # @yieldparam err [StandardError] error object if request failed
1600
+ #
1601
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1602
+ #
1603
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1604
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1605
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1606
+ def patch_project_location_service_connection_map(name, service_connection_map_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1607
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1608
+ command.request_representation = Google::Apis::NetworkconnectivityV1::ServiceConnectionMap::Representation
1609
+ command.request_object = service_connection_map_object
1610
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
1611
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
1612
+ command.params['name'] = name unless name.nil?
1613
+ command.query['requestId'] = request_id unless request_id.nil?
1614
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1615
+ command.query['fields'] = fields unless fields.nil?
1616
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1617
+ execute_or_queue_command(command, &block)
1618
+ end
1619
+
1620
+ # Sets the access control policy on the specified resource. Replaces any
1621
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1622
+ # PERMISSION_DENIED` errors.
1623
+ # @param [String] resource
1624
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1625
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1626
+ # appropriate value for this field.
1627
+ # @param [Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest] set_iam_policy_request_object
1628
+ # @param [String] fields
1629
+ # Selector specifying which fields to include in a partial response.
1630
+ # @param [String] quota_user
1631
+ # Available to use for quota purposes for server-side applications. Can be any
1632
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1633
+ # @param [Google::Apis::RequestOptions] options
1634
+ # Request-specific options
1635
+ #
1636
+ # @yield [result, err] Result & error if block supplied
1637
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1638
+ # @yieldparam err [StandardError] error object if request failed
1639
+ #
1640
+ # @return [Google::Apis::NetworkconnectivityV1::Policy]
1641
+ #
1642
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1643
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1644
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1645
+ def set_service_connection_map_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1646
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1647
+ command.request_representation = Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest::Representation
1648
+ command.request_object = set_iam_policy_request_object
1649
+ command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1650
+ command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1651
+ command.params['resource'] = resource unless resource.nil?
1652
+ command.query['fields'] = fields unless fields.nil?
1653
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1654
+ execute_or_queue_command(command, &block)
1655
+ end
1656
+
1657
+ # Returns permissions that a caller has on the specified resource. If the
1151
1658
  # resource does not exist, this will return an empty set of permissions, not a `
1152
1659
  # NOT_FOUND` error. Note: This operation is designed to be used for building
1153
1660
  # permission-aware UIs and command-line tools, not for authorization checking.
@@ -1166,21 +1673,143 @@ module Google
1166
1673
  # Request-specific options
1167
1674
  #
1168
1675
  # @yield [result, err] Result & error if block supplied
1169
- # @yieldparam result [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse] parsed result object
1676
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse] parsed result object
1677
+ # @yieldparam err [StandardError] error object if request failed
1678
+ #
1679
+ # @return [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse]
1680
+ #
1681
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1682
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1683
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1684
+ def test_service_connection_map_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1685
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1686
+ command.request_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest::Representation
1687
+ command.request_object = test_iam_permissions_request_object
1688
+ command.response_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse::Representation
1689
+ command.response_class = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse
1690
+ command.params['resource'] = resource unless resource.nil?
1691
+ command.query['fields'] = fields unless fields.nil?
1692
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1693
+ execute_or_queue_command(command, &block)
1694
+ end
1695
+
1696
+ # Creates a new ServiceConnectionPolicy in a given project and location.
1697
+ # @param [String] parent
1698
+ # Required. The parent resource's name of the ServiceConnectionPolicy.
1699
+ # @param [Google::Apis::NetworkconnectivityV1::ServiceConnectionPolicy] service_connection_policy_object
1700
+ # @param [String] request_id
1701
+ # Optional. An optional request ID to identify requests. Specify a unique
1702
+ # request ID so that if you must retry your request, the server will know to
1703
+ # ignore the request if it has already been completed. The server will guarantee
1704
+ # that for at least 60 minutes since the first request. For example, consider a
1705
+ # situation where you make an initial request and the request times out. If you
1706
+ # make the request again with the same request ID, the server can check if
1707
+ # original operation with the same request ID was received, and if so, will
1708
+ # ignore the second request. This prevents clients from accidentally creating
1709
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1710
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1711
+ # @param [String] service_connection_policy_id
1712
+ # Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/
1713
+ # serviceConnectionPolicies/foo') See https://google.aip.dev/122#resource-id-
1714
+ # segments Unique per location.
1715
+ # @param [String] fields
1716
+ # Selector specifying which fields to include in a partial response.
1717
+ # @param [String] quota_user
1718
+ # Available to use for quota purposes for server-side applications. Can be any
1719
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1720
+ # @param [Google::Apis::RequestOptions] options
1721
+ # Request-specific options
1722
+ #
1723
+ # @yield [result, err] Result & error if block supplied
1724
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1725
+ # @yieldparam err [StandardError] error object if request failed
1726
+ #
1727
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1728
+ #
1729
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1730
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1731
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1732
+ def create_project_location_service_connection_policy(parent, service_connection_policy_object = nil, request_id: nil, service_connection_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1733
+ command = make_simple_command(:post, 'v1/{+parent}/serviceConnectionPolicies', options)
1734
+ command.request_representation = Google::Apis::NetworkconnectivityV1::ServiceConnectionPolicy::Representation
1735
+ command.request_object = service_connection_policy_object
1736
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
1737
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
1738
+ command.params['parent'] = parent unless parent.nil?
1739
+ command.query['requestId'] = request_id unless request_id.nil?
1740
+ command.query['serviceConnectionPolicyId'] = service_connection_policy_id unless service_connection_policy_id.nil?
1741
+ command.query['fields'] = fields unless fields.nil?
1742
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1743
+ execute_or_queue_command(command, &block)
1744
+ end
1745
+
1746
+ # Deletes a single ServiceConnectionPolicy.
1747
+ # @param [String] name
1748
+ # Required. The name of the ServiceConnectionPolicy to delete.
1749
+ # @param [String] request_id
1750
+ # Optional. An optional request ID to identify requests. Specify a unique
1751
+ # request ID so that if you must retry your request, the server will know to
1752
+ # ignore the request if it has already been completed. The server will guarantee
1753
+ # that for at least 60 minutes after the first request. For example, consider a
1754
+ # situation where you make an initial request and the request times out. If you
1755
+ # make the request again with the same request ID, the server can check if
1756
+ # original operation with the same request ID was received, and if so, will
1757
+ # ignore the second request. This prevents clients from accidentally creating
1758
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1759
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1760
+ # @param [String] fields
1761
+ # Selector specifying which fields to include in a partial response.
1762
+ # @param [String] quota_user
1763
+ # Available to use for quota purposes for server-side applications. Can be any
1764
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1765
+ # @param [Google::Apis::RequestOptions] options
1766
+ # Request-specific options
1767
+ #
1768
+ # @yield [result, err] Result & error if block supplied
1769
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1170
1770
  # @yieldparam err [StandardError] error object if request failed
1171
1771
  #
1172
- # @return [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse]
1772
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1173
1773
  #
1174
1774
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1175
1775
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1176
1776
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1177
- def test_service_connection_map_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1178
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1179
- command.request_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest::Representation
1180
- command.request_object = test_iam_permissions_request_object
1181
- command.response_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse::Representation
1182
- command.response_class = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse
1183
- command.params['resource'] = resource unless resource.nil?
1777
+ def delete_project_location_service_connection_policy(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1778
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1779
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
1780
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
1781
+ command.params['name'] = name unless name.nil?
1782
+ command.query['requestId'] = request_id unless request_id.nil?
1783
+ command.query['fields'] = fields unless fields.nil?
1784
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1785
+ execute_or_queue_command(command, &block)
1786
+ end
1787
+
1788
+ # Gets details of a single ServiceConnectionPolicy.
1789
+ # @param [String] name
1790
+ # Required. Name of the ServiceConnectionPolicy to get.
1791
+ # @param [String] fields
1792
+ # Selector specifying which fields to include in a partial response.
1793
+ # @param [String] quota_user
1794
+ # Available to use for quota purposes for server-side applications. Can be any
1795
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1796
+ # @param [Google::Apis::RequestOptions] options
1797
+ # Request-specific options
1798
+ #
1799
+ # @yield [result, err] Result & error if block supplied
1800
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ServiceConnectionPolicy] parsed result object
1801
+ # @yieldparam err [StandardError] error object if request failed
1802
+ #
1803
+ # @return [Google::Apis::NetworkconnectivityV1::ServiceConnectionPolicy]
1804
+ #
1805
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1806
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1807
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1808
+ def get_project_location_service_connection_policy(name, fields: nil, quota_user: nil, options: nil, &block)
1809
+ command = make_simple_command(:get, 'v1/{+name}', options)
1810
+ command.response_representation = Google::Apis::NetworkconnectivityV1::ServiceConnectionPolicy::Representation
1811
+ command.response_class = Google::Apis::NetworkconnectivityV1::ServiceConnectionPolicy
1812
+ command.params['name'] = name unless name.nil?
1184
1813
  command.query['fields'] = fields unless fields.nil?
1185
1814
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1186
1815
  execute_or_queue_command(command, &block)
@@ -1231,6 +1860,102 @@ module Google
1231
1860
  execute_or_queue_command(command, &block)
1232
1861
  end
1233
1862
 
1863
+ # Lists ServiceConnectionPolicies in a given project and location.
1864
+ # @param [String] parent
1865
+ # Required. The parent resource's name.
1866
+ # @param [String] filter
1867
+ # A filter expression that filters the results listed in the response.
1868
+ # @param [String] order_by
1869
+ # Sort the results by a certain order.
1870
+ # @param [Fixnum] page_size
1871
+ # The maximum number of results per page that should be returned.
1872
+ # @param [String] page_token
1873
+ # The page token.
1874
+ # @param [String] fields
1875
+ # Selector specifying which fields to include in a partial response.
1876
+ # @param [String] quota_user
1877
+ # Available to use for quota purposes for server-side applications. Can be any
1878
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1879
+ # @param [Google::Apis::RequestOptions] options
1880
+ # Request-specific options
1881
+ #
1882
+ # @yield [result, err] Result & error if block supplied
1883
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ListServiceConnectionPoliciesResponse] parsed result object
1884
+ # @yieldparam err [StandardError] error object if request failed
1885
+ #
1886
+ # @return [Google::Apis::NetworkconnectivityV1::ListServiceConnectionPoliciesResponse]
1887
+ #
1888
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1889
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1890
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1891
+ def list_project_location_service_connection_policies(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1892
+ command = make_simple_command(:get, 'v1/{+parent}/serviceConnectionPolicies', options)
1893
+ command.response_representation = Google::Apis::NetworkconnectivityV1::ListServiceConnectionPoliciesResponse::Representation
1894
+ command.response_class = Google::Apis::NetworkconnectivityV1::ListServiceConnectionPoliciesResponse
1895
+ command.params['parent'] = parent unless parent.nil?
1896
+ command.query['filter'] = filter unless filter.nil?
1897
+ command.query['orderBy'] = order_by unless order_by.nil?
1898
+ command.query['pageSize'] = page_size unless page_size.nil?
1899
+ command.query['pageToken'] = page_token unless page_token.nil?
1900
+ command.query['fields'] = fields unless fields.nil?
1901
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1902
+ execute_or_queue_command(command, &block)
1903
+ end
1904
+
1905
+ # Updates the parameters of a single ServiceConnectionPolicy.
1906
+ # @param [String] name
1907
+ # Immutable. The name of a ServiceConnectionPolicy. Format: projects/`project`/
1908
+ # locations/`location`/serviceConnectionPolicies/`service_connection_policy` See:
1909
+ # https://google.aip.dev/122#fields-representing-resource-names
1910
+ # @param [Google::Apis::NetworkconnectivityV1::ServiceConnectionPolicy] service_connection_policy_object
1911
+ # @param [String] request_id
1912
+ # Optional. An optional request ID to identify requests. Specify a unique
1913
+ # request ID so that if you must retry your request, the server will know to
1914
+ # ignore the request if it has already been completed. The server will guarantee
1915
+ # that for at least 60 minutes since the first request. For example, consider a
1916
+ # situation where you make an initial request and the request times out. If you
1917
+ # make the request again with the same request ID, the server can check if
1918
+ # original operation with the same request ID was received, and if so, will
1919
+ # ignore the second request. This prevents clients from accidentally creating
1920
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1921
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1922
+ # @param [String] update_mask
1923
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1924
+ # ServiceConnectionPolicy resource by the update. The fields specified in the
1925
+ # update_mask are relative to the resource, not the full request. A field will
1926
+ # be overwritten if it is in the mask. If the user does not provide a mask then
1927
+ # all fields will be overwritten.
1928
+ # @param [String] fields
1929
+ # Selector specifying which fields to include in a partial response.
1930
+ # @param [String] quota_user
1931
+ # Available to use for quota purposes for server-side applications. Can be any
1932
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1933
+ # @param [Google::Apis::RequestOptions] options
1934
+ # Request-specific options
1935
+ #
1936
+ # @yield [result, err] Result & error if block supplied
1937
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1938
+ # @yieldparam err [StandardError] error object if request failed
1939
+ #
1940
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1941
+ #
1942
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1943
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1944
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1945
+ def patch_project_location_service_connection_policy(name, service_connection_policy_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1946
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1947
+ command.request_representation = Google::Apis::NetworkconnectivityV1::ServiceConnectionPolicy::Representation
1948
+ command.request_object = service_connection_policy_object
1949
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
1950
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
1951
+ command.params['name'] = name unless name.nil?
1952
+ command.query['requestId'] = request_id unless request_id.nil?
1953
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1954
+ command.query['fields'] = fields unless fields.nil?
1955
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1956
+ execute_or_queue_command(command, &block)
1957
+ end
1958
+
1234
1959
  # Sets the access control policy on the specified resource. Replaces any
1235
1960
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1236
1961
  # PERMISSION_DENIED` errors.
@@ -1307,6 +2032,170 @@ module Google
1307
2032
  execute_or_queue_command(command, &block)
1308
2033
  end
1309
2034
 
2035
+ # Creates a new ServiceConnectionToken in a given project and location.
2036
+ # @param [String] parent
2037
+ # Required. The parent resource's name of the ServiceConnectionToken.
2038
+ # @param [Google::Apis::NetworkconnectivityV1::ServiceConnectionToken] service_connection_token_object
2039
+ # @param [String] request_id
2040
+ # Optional. An optional request ID to identify requests. Specify a unique
2041
+ # request ID so that if you must retry your request, the server will know to
2042
+ # ignore the request if it has already been completed. The server will guarantee
2043
+ # that for at least 60 minutes since the first request. For example, consider a
2044
+ # situation where you make an initial request and the request times out. If you
2045
+ # make the request again with the same request ID, the server can check if
2046
+ # original operation with the same request ID was received, and if so, will
2047
+ # ignore the second request. This prevents clients from accidentally creating
2048
+ # duplicate commitments. The request ID must be a valid UUID with the exception
2049
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2050
+ # @param [String] service_connection_token_id
2051
+ # Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/
2052
+ # ServiceConnectionTokens/foo') See https://google.aip.dev/122#resource-id-
2053
+ # segments Unique per location. If one is not provided, one will be generated.
2054
+ # @param [String] fields
2055
+ # Selector specifying which fields to include in a partial response.
2056
+ # @param [String] quota_user
2057
+ # Available to use for quota purposes for server-side applications. Can be any
2058
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2059
+ # @param [Google::Apis::RequestOptions] options
2060
+ # Request-specific options
2061
+ #
2062
+ # @yield [result, err] Result & error if block supplied
2063
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
2064
+ # @yieldparam err [StandardError] error object if request failed
2065
+ #
2066
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
2067
+ #
2068
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2069
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2070
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2071
+ def create_project_location_service_connection_token(parent, service_connection_token_object = nil, request_id: nil, service_connection_token_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2072
+ command = make_simple_command(:post, 'v1/{+parent}/serviceConnectionTokens', options)
2073
+ command.request_representation = Google::Apis::NetworkconnectivityV1::ServiceConnectionToken::Representation
2074
+ command.request_object = service_connection_token_object
2075
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
2076
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
2077
+ command.params['parent'] = parent unless parent.nil?
2078
+ command.query['requestId'] = request_id unless request_id.nil?
2079
+ command.query['serviceConnectionTokenId'] = service_connection_token_id unless service_connection_token_id.nil?
2080
+ command.query['fields'] = fields unless fields.nil?
2081
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2082
+ execute_or_queue_command(command, &block)
2083
+ end
2084
+
2085
+ # Deletes a single ServiceConnectionToken.
2086
+ # @param [String] name
2087
+ # Required. The name of the ServiceConnectionToken to delete.
2088
+ # @param [String] request_id
2089
+ # Optional. An optional request ID to identify requests. Specify a unique
2090
+ # request ID so that if you must retry your request, the server will know to
2091
+ # ignore the request if it has already been completed. The server will guarantee
2092
+ # that for at least 60 minutes after the first request. For example, consider a
2093
+ # situation where you make an initial request and the request times out. If you
2094
+ # make the request again with the same request ID, the server can check if
2095
+ # original operation with the same request ID was received, and if so, will
2096
+ # ignore the second request. This prevents clients from accidentally creating
2097
+ # duplicate commitments. The request ID must be a valid UUID with the exception
2098
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2099
+ # @param [String] fields
2100
+ # Selector specifying which fields to include in a partial response.
2101
+ # @param [String] quota_user
2102
+ # Available to use for quota purposes for server-side applications. Can be any
2103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2104
+ # @param [Google::Apis::RequestOptions] options
2105
+ # Request-specific options
2106
+ #
2107
+ # @yield [result, err] Result & error if block supplied
2108
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
2109
+ # @yieldparam err [StandardError] error object if request failed
2110
+ #
2111
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
2112
+ #
2113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2116
+ def delete_project_location_service_connection_token(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2117
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2118
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
2119
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
2120
+ command.params['name'] = name unless name.nil?
2121
+ command.query['requestId'] = request_id unless request_id.nil?
2122
+ command.query['fields'] = fields unless fields.nil?
2123
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2124
+ execute_or_queue_command(command, &block)
2125
+ end
2126
+
2127
+ # Gets details of a single ServiceConnectionToken.
2128
+ # @param [String] name
2129
+ # Required. Name of the ServiceConnectionToken to get.
2130
+ # @param [String] fields
2131
+ # Selector specifying which fields to include in a partial response.
2132
+ # @param [String] quota_user
2133
+ # Available to use for quota purposes for server-side applications. Can be any
2134
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2135
+ # @param [Google::Apis::RequestOptions] options
2136
+ # Request-specific options
2137
+ #
2138
+ # @yield [result, err] Result & error if block supplied
2139
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ServiceConnectionToken] parsed result object
2140
+ # @yieldparam err [StandardError] error object if request failed
2141
+ #
2142
+ # @return [Google::Apis::NetworkconnectivityV1::ServiceConnectionToken]
2143
+ #
2144
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2145
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2146
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2147
+ def get_project_location_service_connection_token(name, fields: nil, quota_user: nil, options: nil, &block)
2148
+ command = make_simple_command(:get, 'v1/{+name}', options)
2149
+ command.response_representation = Google::Apis::NetworkconnectivityV1::ServiceConnectionToken::Representation
2150
+ command.response_class = Google::Apis::NetworkconnectivityV1::ServiceConnectionToken
2151
+ command.params['name'] = name unless name.nil?
2152
+ command.query['fields'] = fields unless fields.nil?
2153
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2154
+ execute_or_queue_command(command, &block)
2155
+ end
2156
+
2157
+ # Lists ServiceConnectionTokens in a given project and location.
2158
+ # @param [String] parent
2159
+ # Required. The parent resource's name.
2160
+ # @param [String] filter
2161
+ # A filter expression that filters the results listed in the response.
2162
+ # @param [String] order_by
2163
+ # Sort the results by a certain order.
2164
+ # @param [Fixnum] page_size
2165
+ # The maximum number of results per page that should be returned.
2166
+ # @param [String] page_token
2167
+ # The page token.
2168
+ # @param [String] fields
2169
+ # Selector specifying which fields to include in a partial response.
2170
+ # @param [String] quota_user
2171
+ # Available to use for quota purposes for server-side applications. Can be any
2172
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2173
+ # @param [Google::Apis::RequestOptions] options
2174
+ # Request-specific options
2175
+ #
2176
+ # @yield [result, err] Result & error if block supplied
2177
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ListServiceConnectionTokensResponse] parsed result object
2178
+ # @yieldparam err [StandardError] error object if request failed
2179
+ #
2180
+ # @return [Google::Apis::NetworkconnectivityV1::ListServiceConnectionTokensResponse]
2181
+ #
2182
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2183
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2184
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2185
+ def list_project_location_service_connection_tokens(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2186
+ command = make_simple_command(:get, 'v1/{+parent}/serviceConnectionTokens', options)
2187
+ command.response_representation = Google::Apis::NetworkconnectivityV1::ListServiceConnectionTokensResponse::Representation
2188
+ command.response_class = Google::Apis::NetworkconnectivityV1::ListServiceConnectionTokensResponse
2189
+ command.params['parent'] = parent unless parent.nil?
2190
+ command.query['filter'] = filter unless filter.nil?
2191
+ command.query['orderBy'] = order_by unless order_by.nil?
2192
+ command.query['pageSize'] = page_size unless page_size.nil?
2193
+ command.query['pageToken'] = page_token unless page_token.nil?
2194
+ command.query['fields'] = fields unless fields.nil?
2195
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2196
+ execute_or_queue_command(command, &block)
2197
+ end
2198
+
1310
2199
  # Creates a Network Connectivity Center spoke.
1311
2200
  # @param [String] parent
1312
2201
  # Required. The parent resource.