google-cloud-developer_connect-v1 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/developer_connect/v1/developer_connect/client.rb +1087 -0
  3. data/lib/google/cloud/developer_connect/v1/developer_connect/paths.rb +40 -0
  4. data/lib/google/cloud/developer_connect/v1/developer_connect/rest/client.rb +1017 -0
  5. data/lib/google/cloud/developer_connect/v1/developer_connect/rest/service_stub.rb +613 -0
  6. data/lib/google/cloud/developer_connect/v1/rest.rb +1 -0
  7. data/lib/google/cloud/developer_connect/v1/version.rb +1 -1
  8. data/lib/google/cloud/developer_connect/v1.rb +1 -0
  9. data/lib/google/cloud/developerconnect/v1/developer_connect_pb.rb +22 -1
  10. data/lib/google/cloud/developerconnect/v1/developer_connect_services_pb.rb +20 -0
  11. data/lib/google/cloud/developerconnect/v1/insights_config_pb.rb +69 -0
  12. data/lib/google/cloud/developerconnect/v1/insights_config_service/client.rb +956 -0
  13. data/lib/google/cloud/developerconnect/v1/insights_config_service/credentials.rb +47 -0
  14. data/lib/google/cloud/developerconnect/v1/insights_config_service/operations.rb +813 -0
  15. data/lib/google/cloud/developerconnect/v1/insights_config_service/paths.rb +69 -0
  16. data/lib/google/cloud/developerconnect/v1/insights_config_service/rest/client.rb +903 -0
  17. data/lib/google/cloud/developerconnect/v1/insights_config_service/rest/operations.rb +914 -0
  18. data/lib/google/cloud/developerconnect/v1/insights_config_service/rest/service_stub.rb +388 -0
  19. data/lib/google/cloud/developerconnect/v1/insights_config_service/rest.rb +62 -0
  20. data/lib/google/cloud/developerconnect/v1/insights_config_service.rb +64 -0
  21. data/lib/google/cloud/developerconnect/v1/insights_config_services_pb.rb +61 -0
  22. data/proto_docs/google/cloud/developerconnect/v1/developer_connect.rb +515 -8
  23. data/proto_docs/google/cloud/developerconnect/v1/insights_config.rb +353 -0
  24. metadata +14 -2
@@ -633,6 +633,406 @@ module Google
633
633
  end
634
634
  end
635
635
 
636
+ ##
637
+ # Baseline implementation for the list_account_connectors REST call
638
+ #
639
+ # @param request_pb [::Google::Cloud::DeveloperConnect::V1::ListAccountConnectorsRequest]
640
+ # A request object representing the call parameters. Required.
641
+ # @param options [::Gapic::CallOptions]
642
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
643
+ #
644
+ # @yield [result, operation] Access the result along with the TransportOperation object
645
+ # @yieldparam result [::Google::Cloud::DeveloperConnect::V1::ListAccountConnectorsResponse]
646
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
647
+ #
648
+ # @return [::Google::Cloud::DeveloperConnect::V1::ListAccountConnectorsResponse]
649
+ # A result object deserialized from the server's reply
650
+ def list_account_connectors request_pb, options = nil
651
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
652
+
653
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_account_connectors_request request_pb
654
+ query_string_params = if query_string_params.any?
655
+ query_string_params.to_h { |p| p.split "=", 2 }
656
+ else
657
+ {}
658
+ end
659
+
660
+ response = @client_stub.make_http_request(
661
+ verb,
662
+ uri: uri,
663
+ body: body || "",
664
+ params: query_string_params,
665
+ method_name: "list_account_connectors",
666
+ options: options
667
+ )
668
+ operation = ::Gapic::Rest::TransportOperation.new response
669
+ result = ::Google::Cloud::DeveloperConnect::V1::ListAccountConnectorsResponse.decode_json response.body, ignore_unknown_fields: true
670
+ catch :response do
671
+ yield result, operation if block_given?
672
+ result
673
+ end
674
+ end
675
+
676
+ ##
677
+ # Baseline implementation for the get_account_connector REST call
678
+ #
679
+ # @param request_pb [::Google::Cloud::DeveloperConnect::V1::GetAccountConnectorRequest]
680
+ # A request object representing the call parameters. Required.
681
+ # @param options [::Gapic::CallOptions]
682
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
683
+ #
684
+ # @yield [result, operation] Access the result along with the TransportOperation object
685
+ # @yieldparam result [::Google::Cloud::DeveloperConnect::V1::AccountConnector]
686
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
687
+ #
688
+ # @return [::Google::Cloud::DeveloperConnect::V1::AccountConnector]
689
+ # A result object deserialized from the server's reply
690
+ def get_account_connector request_pb, options = nil
691
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
692
+
693
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_account_connector_request request_pb
694
+ query_string_params = if query_string_params.any?
695
+ query_string_params.to_h { |p| p.split "=", 2 }
696
+ else
697
+ {}
698
+ end
699
+
700
+ response = @client_stub.make_http_request(
701
+ verb,
702
+ uri: uri,
703
+ body: body || "",
704
+ params: query_string_params,
705
+ method_name: "get_account_connector",
706
+ options: options
707
+ )
708
+ operation = ::Gapic::Rest::TransportOperation.new response
709
+ result = ::Google::Cloud::DeveloperConnect::V1::AccountConnector.decode_json response.body, ignore_unknown_fields: true
710
+ catch :response do
711
+ yield result, operation if block_given?
712
+ result
713
+ end
714
+ end
715
+
716
+ ##
717
+ # Baseline implementation for the create_account_connector REST call
718
+ #
719
+ # @param request_pb [::Google::Cloud::DeveloperConnect::V1::CreateAccountConnectorRequest]
720
+ # A request object representing the call parameters. Required.
721
+ # @param options [::Gapic::CallOptions]
722
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
723
+ #
724
+ # @yield [result, operation] Access the result along with the TransportOperation object
725
+ # @yieldparam result [::Google::Longrunning::Operation]
726
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
727
+ #
728
+ # @return [::Google::Longrunning::Operation]
729
+ # A result object deserialized from the server's reply
730
+ def create_account_connector request_pb, options = nil
731
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
732
+
733
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_account_connector_request request_pb
734
+ query_string_params = if query_string_params.any?
735
+ query_string_params.to_h { |p| p.split "=", 2 }
736
+ else
737
+ {}
738
+ end
739
+
740
+ response = @client_stub.make_http_request(
741
+ verb,
742
+ uri: uri,
743
+ body: body || "",
744
+ params: query_string_params,
745
+ method_name: "create_account_connector",
746
+ options: options
747
+ )
748
+ operation = ::Gapic::Rest::TransportOperation.new response
749
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
750
+ catch :response do
751
+ yield result, operation if block_given?
752
+ result
753
+ end
754
+ end
755
+
756
+ ##
757
+ # Baseline implementation for the update_account_connector REST call
758
+ #
759
+ # @param request_pb [::Google::Cloud::DeveloperConnect::V1::UpdateAccountConnectorRequest]
760
+ # A request object representing the call parameters. Required.
761
+ # @param options [::Gapic::CallOptions]
762
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
763
+ #
764
+ # @yield [result, operation] Access the result along with the TransportOperation object
765
+ # @yieldparam result [::Google::Longrunning::Operation]
766
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
767
+ #
768
+ # @return [::Google::Longrunning::Operation]
769
+ # A result object deserialized from the server's reply
770
+ def update_account_connector request_pb, options = nil
771
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
772
+
773
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_account_connector_request request_pb
774
+ query_string_params = if query_string_params.any?
775
+ query_string_params.to_h { |p| p.split "=", 2 }
776
+ else
777
+ {}
778
+ end
779
+
780
+ response = @client_stub.make_http_request(
781
+ verb,
782
+ uri: uri,
783
+ body: body || "",
784
+ params: query_string_params,
785
+ method_name: "update_account_connector",
786
+ options: options
787
+ )
788
+ operation = ::Gapic::Rest::TransportOperation.new response
789
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
790
+ catch :response do
791
+ yield result, operation if block_given?
792
+ result
793
+ end
794
+ end
795
+
796
+ ##
797
+ # Baseline implementation for the delete_account_connector REST call
798
+ #
799
+ # @param request_pb [::Google::Cloud::DeveloperConnect::V1::DeleteAccountConnectorRequest]
800
+ # A request object representing the call parameters. Required.
801
+ # @param options [::Gapic::CallOptions]
802
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
803
+ #
804
+ # @yield [result, operation] Access the result along with the TransportOperation object
805
+ # @yieldparam result [::Google::Longrunning::Operation]
806
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
807
+ #
808
+ # @return [::Google::Longrunning::Operation]
809
+ # A result object deserialized from the server's reply
810
+ def delete_account_connector request_pb, options = nil
811
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
812
+
813
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_account_connector_request request_pb
814
+ query_string_params = if query_string_params.any?
815
+ query_string_params.to_h { |p| p.split "=", 2 }
816
+ else
817
+ {}
818
+ end
819
+
820
+ response = @client_stub.make_http_request(
821
+ verb,
822
+ uri: uri,
823
+ body: body || "",
824
+ params: query_string_params,
825
+ method_name: "delete_account_connector",
826
+ options: options
827
+ )
828
+ operation = ::Gapic::Rest::TransportOperation.new response
829
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
830
+ catch :response do
831
+ yield result, operation if block_given?
832
+ result
833
+ end
834
+ end
835
+
836
+ ##
837
+ # Baseline implementation for the fetch_access_token REST call
838
+ #
839
+ # @param request_pb [::Google::Cloud::DeveloperConnect::V1::FetchAccessTokenRequest]
840
+ # A request object representing the call parameters. Required.
841
+ # @param options [::Gapic::CallOptions]
842
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
843
+ #
844
+ # @yield [result, operation] Access the result along with the TransportOperation object
845
+ # @yieldparam result [::Google::Cloud::DeveloperConnect::V1::FetchAccessTokenResponse]
846
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
847
+ #
848
+ # @return [::Google::Cloud::DeveloperConnect::V1::FetchAccessTokenResponse]
849
+ # A result object deserialized from the server's reply
850
+ def fetch_access_token request_pb, options = nil
851
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
852
+
853
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_access_token_request request_pb
854
+ query_string_params = if query_string_params.any?
855
+ query_string_params.to_h { |p| p.split "=", 2 }
856
+ else
857
+ {}
858
+ end
859
+
860
+ response = @client_stub.make_http_request(
861
+ verb,
862
+ uri: uri,
863
+ body: body || "",
864
+ params: query_string_params,
865
+ method_name: "fetch_access_token",
866
+ options: options
867
+ )
868
+ operation = ::Gapic::Rest::TransportOperation.new response
869
+ result = ::Google::Cloud::DeveloperConnect::V1::FetchAccessTokenResponse.decode_json response.body, ignore_unknown_fields: true
870
+ catch :response do
871
+ yield result, operation if block_given?
872
+ result
873
+ end
874
+ end
875
+
876
+ ##
877
+ # Baseline implementation for the list_users REST call
878
+ #
879
+ # @param request_pb [::Google::Cloud::DeveloperConnect::V1::ListUsersRequest]
880
+ # A request object representing the call parameters. Required.
881
+ # @param options [::Gapic::CallOptions]
882
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
883
+ #
884
+ # @yield [result, operation] Access the result along with the TransportOperation object
885
+ # @yieldparam result [::Google::Cloud::DeveloperConnect::V1::ListUsersResponse]
886
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
887
+ #
888
+ # @return [::Google::Cloud::DeveloperConnect::V1::ListUsersResponse]
889
+ # A result object deserialized from the server's reply
890
+ def list_users request_pb, options = nil
891
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
892
+
893
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_users_request request_pb
894
+ query_string_params = if query_string_params.any?
895
+ query_string_params.to_h { |p| p.split "=", 2 }
896
+ else
897
+ {}
898
+ end
899
+
900
+ response = @client_stub.make_http_request(
901
+ verb,
902
+ uri: uri,
903
+ body: body || "",
904
+ params: query_string_params,
905
+ method_name: "list_users",
906
+ options: options
907
+ )
908
+ operation = ::Gapic::Rest::TransportOperation.new response
909
+ result = ::Google::Cloud::DeveloperConnect::V1::ListUsersResponse.decode_json response.body, ignore_unknown_fields: true
910
+ catch :response do
911
+ yield result, operation if block_given?
912
+ result
913
+ end
914
+ end
915
+
916
+ ##
917
+ # Baseline implementation for the delete_user REST call
918
+ #
919
+ # @param request_pb [::Google::Cloud::DeveloperConnect::V1::DeleteUserRequest]
920
+ # A request object representing the call parameters. Required.
921
+ # @param options [::Gapic::CallOptions]
922
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
923
+ #
924
+ # @yield [result, operation] Access the result along with the TransportOperation object
925
+ # @yieldparam result [::Google::Longrunning::Operation]
926
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
927
+ #
928
+ # @return [::Google::Longrunning::Operation]
929
+ # A result object deserialized from the server's reply
930
+ def delete_user request_pb, options = nil
931
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
932
+
933
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_user_request request_pb
934
+ query_string_params = if query_string_params.any?
935
+ query_string_params.to_h { |p| p.split "=", 2 }
936
+ else
937
+ {}
938
+ end
939
+
940
+ response = @client_stub.make_http_request(
941
+ verb,
942
+ uri: uri,
943
+ body: body || "",
944
+ params: query_string_params,
945
+ method_name: "delete_user",
946
+ options: options
947
+ )
948
+ operation = ::Gapic::Rest::TransportOperation.new response
949
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
950
+ catch :response do
951
+ yield result, operation if block_given?
952
+ result
953
+ end
954
+ end
955
+
956
+ ##
957
+ # Baseline implementation for the fetch_self REST call
958
+ #
959
+ # @param request_pb [::Google::Cloud::DeveloperConnect::V1::FetchSelfRequest]
960
+ # A request object representing the call parameters. Required.
961
+ # @param options [::Gapic::CallOptions]
962
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
963
+ #
964
+ # @yield [result, operation] Access the result along with the TransportOperation object
965
+ # @yieldparam result [::Google::Cloud::DeveloperConnect::V1::User]
966
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
967
+ #
968
+ # @return [::Google::Cloud::DeveloperConnect::V1::User]
969
+ # A result object deserialized from the server's reply
970
+ def fetch_self request_pb, options = nil
971
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
972
+
973
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_self_request request_pb
974
+ query_string_params = if query_string_params.any?
975
+ query_string_params.to_h { |p| p.split "=", 2 }
976
+ else
977
+ {}
978
+ end
979
+
980
+ response = @client_stub.make_http_request(
981
+ verb,
982
+ uri: uri,
983
+ body: body || "",
984
+ params: query_string_params,
985
+ method_name: "fetch_self",
986
+ options: options
987
+ )
988
+ operation = ::Gapic::Rest::TransportOperation.new response
989
+ result = ::Google::Cloud::DeveloperConnect::V1::User.decode_json response.body, ignore_unknown_fields: true
990
+ catch :response do
991
+ yield result, operation if block_given?
992
+ result
993
+ end
994
+ end
995
+
996
+ ##
997
+ # Baseline implementation for the delete_self REST call
998
+ #
999
+ # @param request_pb [::Google::Cloud::DeveloperConnect::V1::DeleteSelfRequest]
1000
+ # A request object representing the call parameters. Required.
1001
+ # @param options [::Gapic::CallOptions]
1002
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1003
+ #
1004
+ # @yield [result, operation] Access the result along with the TransportOperation object
1005
+ # @yieldparam result [::Google::Longrunning::Operation]
1006
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1007
+ #
1008
+ # @return [::Google::Longrunning::Operation]
1009
+ # A result object deserialized from the server's reply
1010
+ def delete_self request_pb, options = nil
1011
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1012
+
1013
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_self_request request_pb
1014
+ query_string_params = if query_string_params.any?
1015
+ query_string_params.to_h { |p| p.split "=", 2 }
1016
+ else
1017
+ {}
1018
+ end
1019
+
1020
+ response = @client_stub.make_http_request(
1021
+ verb,
1022
+ uri: uri,
1023
+ body: body || "",
1024
+ params: query_string_params,
1025
+ method_name: "delete_self",
1026
+ options: options
1027
+ )
1028
+ operation = ::Gapic::Rest::TransportOperation.new response
1029
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1030
+ catch :response do
1031
+ yield result, operation if block_given?
1032
+ result
1033
+ end
1034
+ end
1035
+
636
1036
  ##
637
1037
  # @private
638
1038
  #
@@ -931,6 +1331,219 @@ module Google
931
1331
  )
932
1332
  transcoder.transcode request_pb
933
1333
  end
1334
+
1335
+ ##
1336
+ # @private
1337
+ #
1338
+ # GRPC transcoding helper method for the list_account_connectors REST call
1339
+ #
1340
+ # @param request_pb [::Google::Cloud::DeveloperConnect::V1::ListAccountConnectorsRequest]
1341
+ # A request object representing the call parameters. Required.
1342
+ # @return [Array(String, [String, nil], Hash{String => String})]
1343
+ # Uri, Body, Query string parameters
1344
+ def self.transcode_list_account_connectors_request request_pb
1345
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1346
+ .with_bindings(
1347
+ uri_method: :get,
1348
+ uri_template: "/v1/{parent}/accountConnectors",
1349
+ matches: [
1350
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1351
+ ]
1352
+ )
1353
+ transcoder.transcode request_pb
1354
+ end
1355
+
1356
+ ##
1357
+ # @private
1358
+ #
1359
+ # GRPC transcoding helper method for the get_account_connector REST call
1360
+ #
1361
+ # @param request_pb [::Google::Cloud::DeveloperConnect::V1::GetAccountConnectorRequest]
1362
+ # A request object representing the call parameters. Required.
1363
+ # @return [Array(String, [String, nil], Hash{String => String})]
1364
+ # Uri, Body, Query string parameters
1365
+ def self.transcode_get_account_connector_request request_pb
1366
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1367
+ .with_bindings(
1368
+ uri_method: :get,
1369
+ uri_template: "/v1/{name}",
1370
+ matches: [
1371
+ ["name", %r{^projects/[^/]+/locations/[^/]+/accountConnectors/[^/]+/?$}, false]
1372
+ ]
1373
+ )
1374
+ transcoder.transcode request_pb
1375
+ end
1376
+
1377
+ ##
1378
+ # @private
1379
+ #
1380
+ # GRPC transcoding helper method for the create_account_connector REST call
1381
+ #
1382
+ # @param request_pb [::Google::Cloud::DeveloperConnect::V1::CreateAccountConnectorRequest]
1383
+ # A request object representing the call parameters. Required.
1384
+ # @return [Array(String, [String, nil], Hash{String => String})]
1385
+ # Uri, Body, Query string parameters
1386
+ def self.transcode_create_account_connector_request request_pb
1387
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1388
+ .with_bindings(
1389
+ uri_method: :post,
1390
+ uri_template: "/v1/{parent}/accountConnectors",
1391
+ body: "account_connector",
1392
+ matches: [
1393
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1394
+ ]
1395
+ )
1396
+ transcoder.transcode request_pb
1397
+ end
1398
+
1399
+ ##
1400
+ # @private
1401
+ #
1402
+ # GRPC transcoding helper method for the update_account_connector REST call
1403
+ #
1404
+ # @param request_pb [::Google::Cloud::DeveloperConnect::V1::UpdateAccountConnectorRequest]
1405
+ # A request object representing the call parameters. Required.
1406
+ # @return [Array(String, [String, nil], Hash{String => String})]
1407
+ # Uri, Body, Query string parameters
1408
+ def self.transcode_update_account_connector_request request_pb
1409
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1410
+ .with_bindings(
1411
+ uri_method: :patch,
1412
+ uri_template: "/v1/{account_connector.name}",
1413
+ body: "account_connector",
1414
+ matches: [
1415
+ ["account_connector.name", %r{^projects/[^/]+/locations/[^/]+/accountConnectors/[^/]+/?$}, false]
1416
+ ]
1417
+ )
1418
+ transcoder.transcode request_pb
1419
+ end
1420
+
1421
+ ##
1422
+ # @private
1423
+ #
1424
+ # GRPC transcoding helper method for the delete_account_connector REST call
1425
+ #
1426
+ # @param request_pb [::Google::Cloud::DeveloperConnect::V1::DeleteAccountConnectorRequest]
1427
+ # A request object representing the call parameters. Required.
1428
+ # @return [Array(String, [String, nil], Hash{String => String})]
1429
+ # Uri, Body, Query string parameters
1430
+ def self.transcode_delete_account_connector_request request_pb
1431
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1432
+ .with_bindings(
1433
+ uri_method: :delete,
1434
+ uri_template: "/v1/{name}",
1435
+ matches: [
1436
+ ["name", %r{^projects/[^/]+/locations/[^/]+/accountConnectors/[^/]+/?$}, false]
1437
+ ]
1438
+ )
1439
+ transcoder.transcode request_pb
1440
+ end
1441
+
1442
+ ##
1443
+ # @private
1444
+ #
1445
+ # GRPC transcoding helper method for the fetch_access_token REST call
1446
+ #
1447
+ # @param request_pb [::Google::Cloud::DeveloperConnect::V1::FetchAccessTokenRequest]
1448
+ # A request object representing the call parameters. Required.
1449
+ # @return [Array(String, [String, nil], Hash{String => String})]
1450
+ # Uri, Body, Query string parameters
1451
+ def self.transcode_fetch_access_token_request request_pb
1452
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1453
+ .with_bindings(
1454
+ uri_method: :post,
1455
+ uri_template: "/v1/{account_connector}/users:fetchAccessToken",
1456
+ body: "*",
1457
+ matches: [
1458
+ ["account_connector", %r{^projects/[^/]+/locations/[^/]+/accountConnectors/[^/]+/?$}, false]
1459
+ ]
1460
+ )
1461
+ transcoder.transcode request_pb
1462
+ end
1463
+
1464
+ ##
1465
+ # @private
1466
+ #
1467
+ # GRPC transcoding helper method for the list_users REST call
1468
+ #
1469
+ # @param request_pb [::Google::Cloud::DeveloperConnect::V1::ListUsersRequest]
1470
+ # A request object representing the call parameters. Required.
1471
+ # @return [Array(String, [String, nil], Hash{String => String})]
1472
+ # Uri, Body, Query string parameters
1473
+ def self.transcode_list_users_request request_pb
1474
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1475
+ .with_bindings(
1476
+ uri_method: :get,
1477
+ uri_template: "/v1/{parent}/users",
1478
+ matches: [
1479
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/accountConnectors/[^/]+/?$}, false]
1480
+ ]
1481
+ )
1482
+ transcoder.transcode request_pb
1483
+ end
1484
+
1485
+ ##
1486
+ # @private
1487
+ #
1488
+ # GRPC transcoding helper method for the delete_user REST call
1489
+ #
1490
+ # @param request_pb [::Google::Cloud::DeveloperConnect::V1::DeleteUserRequest]
1491
+ # A request object representing the call parameters. Required.
1492
+ # @return [Array(String, [String, nil], Hash{String => String})]
1493
+ # Uri, Body, Query string parameters
1494
+ def self.transcode_delete_user_request request_pb
1495
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1496
+ .with_bindings(
1497
+ uri_method: :delete,
1498
+ uri_template: "/v1/{name}",
1499
+ matches: [
1500
+ ["name", %r{^projects/[^/]+/locations/[^/]+/accountConnectors/[^/]+/users/[^/]+/?$}, false]
1501
+ ]
1502
+ )
1503
+ transcoder.transcode request_pb
1504
+ end
1505
+
1506
+ ##
1507
+ # @private
1508
+ #
1509
+ # GRPC transcoding helper method for the fetch_self REST call
1510
+ #
1511
+ # @param request_pb [::Google::Cloud::DeveloperConnect::V1::FetchSelfRequest]
1512
+ # A request object representing the call parameters. Required.
1513
+ # @return [Array(String, [String, nil], Hash{String => String})]
1514
+ # Uri, Body, Query string parameters
1515
+ def self.transcode_fetch_self_request request_pb
1516
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1517
+ .with_bindings(
1518
+ uri_method: :get,
1519
+ uri_template: "/v1/{name}/users:fetchSelf",
1520
+ matches: [
1521
+ ["name", %r{^projects/[^/]+/locations/[^/]+/accountConnectors/[^/]+/?$}, false]
1522
+ ]
1523
+ )
1524
+ transcoder.transcode request_pb
1525
+ end
1526
+
1527
+ ##
1528
+ # @private
1529
+ #
1530
+ # GRPC transcoding helper method for the delete_self REST call
1531
+ #
1532
+ # @param request_pb [::Google::Cloud::DeveloperConnect::V1::DeleteSelfRequest]
1533
+ # A request object representing the call parameters. Required.
1534
+ # @return [Array(String, [String, nil], Hash{String => String})]
1535
+ # Uri, Body, Query string parameters
1536
+ def self.transcode_delete_self_request request_pb
1537
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1538
+ .with_bindings(
1539
+ uri_method: :delete,
1540
+ uri_template: "/v1/{name}/users:deleteSelf",
1541
+ matches: [
1542
+ ["name", %r{^projects/[^/]+/locations/[^/]+/accountConnectors/[^/]+/?$}, false]
1543
+ ]
1544
+ )
1545
+ transcoder.transcode request_pb
1546
+ end
934
1547
  end
935
1548
  end
936
1549
  end
@@ -17,6 +17,7 @@
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
19
  require "google/cloud/developer_connect/v1/developer_connect/rest"
20
+ require "google/cloud/developerconnect/v1/insights_config_service/rest"
20
21
  require "google/cloud/developer_connect/v1/bindings_override"
21
22
  require "google/cloud/developer_connect/v1/version"
22
23
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DeveloperConnect
23
23
  module V1
24
- VERSION = "1.1.0"
24
+ VERSION = "1.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -17,6 +17,7 @@
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
19
  require "google/cloud/developer_connect/v1/developer_connect"
20
+ require "google/cloud/developerconnect/v1/insights_config_service"
20
21
  require "google/cloud/developer_connect/v1/version"
21
22
 
22
23
  module Google