google-apis-connectors_v1 0.32.0 → 0.33.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -420,6 +420,39 @@ module Google
420
420
  execute_or_queue_command(command, &block)
421
421
  end
422
422
 
423
+ # RepaiEventing tries to repair eventing related event subscriptions.
424
+ # @param [String] name
425
+ # Required. Resource name of the form: `projects/*/locations/*/connections/*`
426
+ # @param [Google::Apis::ConnectorsV1::RepairEventingRequest] repair_eventing_request_object
427
+ # @param [String] fields
428
+ # Selector specifying which fields to include in a partial response.
429
+ # @param [String] quota_user
430
+ # Available to use for quota purposes for server-side applications. Can be any
431
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
432
+ # @param [Google::Apis::RequestOptions] options
433
+ # Request-specific options
434
+ #
435
+ # @yield [result, err] Result & error if block supplied
436
+ # @yieldparam result [Google::Apis::ConnectorsV1::Operation] parsed result object
437
+ # @yieldparam err [StandardError] error object if request failed
438
+ #
439
+ # @return [Google::Apis::ConnectorsV1::Operation]
440
+ #
441
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
442
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
443
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
444
+ def repair_connection_eventing(name, repair_eventing_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
445
+ command = make_simple_command(:post, 'v1/{+name}:repairEventing', options)
446
+ command.request_representation = Google::Apis::ConnectorsV1::RepairEventingRequest::Representation
447
+ command.request_object = repair_eventing_request_object
448
+ command.response_representation = Google::Apis::ConnectorsV1::Operation::Representation
449
+ command.response_class = Google::Apis::ConnectorsV1::Operation
450
+ command.params['name'] = name unless name.nil?
451
+ command.query['fields'] = fields unless fields.nil?
452
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
453
+ execute_or_queue_command(command, &block)
454
+ end
455
+
423
456
  # Sets the access control policy on the specified resource. Replaces any
424
457
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
425
458
  # PERMISSION_DENIED` errors.
@@ -530,6 +563,225 @@ module Google
530
563
  execute_or_queue_command(command, &block)
531
564
  end
532
565
 
566
+ # Creates a new EventSubscription in a given project,location and connection.
567
+ # @param [String] parent
568
+ # Required. Parent resource of the EventSubscription, of the form: `projects/*/
569
+ # locations/*/connections/*`
570
+ # @param [Google::Apis::ConnectorsV1::EventSubscription] event_subscription_object
571
+ # @param [String] event_subscription_id
572
+ # Required. Identifier to assign to the Event Subscription. Must be unique
573
+ # within scope of the parent resource.
574
+ # @param [String] fields
575
+ # Selector specifying which fields to include in a partial response.
576
+ # @param [String] quota_user
577
+ # Available to use for quota purposes for server-side applications. Can be any
578
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
579
+ # @param [Google::Apis::RequestOptions] options
580
+ # Request-specific options
581
+ #
582
+ # @yield [result, err] Result & error if block supplied
583
+ # @yieldparam result [Google::Apis::ConnectorsV1::Operation] parsed result object
584
+ # @yieldparam err [StandardError] error object if request failed
585
+ #
586
+ # @return [Google::Apis::ConnectorsV1::Operation]
587
+ #
588
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
589
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
590
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
591
+ def create_project_location_connection_event_subscription(parent, event_subscription_object = nil, event_subscription_id: nil, fields: nil, quota_user: nil, options: nil, &block)
592
+ command = make_simple_command(:post, 'v1/{+parent}/eventSubscriptions', options)
593
+ command.request_representation = Google::Apis::ConnectorsV1::EventSubscription::Representation
594
+ command.request_object = event_subscription_object
595
+ command.response_representation = Google::Apis::ConnectorsV1::Operation::Representation
596
+ command.response_class = Google::Apis::ConnectorsV1::Operation
597
+ command.params['parent'] = parent unless parent.nil?
598
+ command.query['eventSubscriptionId'] = event_subscription_id unless event_subscription_id.nil?
599
+ command.query['fields'] = fields unless fields.nil?
600
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
601
+ execute_or_queue_command(command, &block)
602
+ end
603
+
604
+ # Deletes a single EventSubscription.
605
+ # @param [String] name
606
+ # Required. Resource name of the form: `projects/*/locations/*/connections/*/
607
+ # eventsubscriptions/*`
608
+ # @param [String] fields
609
+ # Selector specifying which fields to include in a partial response.
610
+ # @param [String] quota_user
611
+ # Available to use for quota purposes for server-side applications. Can be any
612
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
613
+ # @param [Google::Apis::RequestOptions] options
614
+ # Request-specific options
615
+ #
616
+ # @yield [result, err] Result & error if block supplied
617
+ # @yieldparam result [Google::Apis::ConnectorsV1::Operation] parsed result object
618
+ # @yieldparam err [StandardError] error object if request failed
619
+ #
620
+ # @return [Google::Apis::ConnectorsV1::Operation]
621
+ #
622
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
623
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
624
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
625
+ def delete_project_location_connection_event_subscription(name, fields: nil, quota_user: nil, options: nil, &block)
626
+ command = make_simple_command(:delete, 'v1/{+name}', options)
627
+ command.response_representation = Google::Apis::ConnectorsV1::Operation::Representation
628
+ command.response_class = Google::Apis::ConnectorsV1::Operation
629
+ command.params['name'] = name unless name.nil?
630
+ command.query['fields'] = fields unless fields.nil?
631
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
632
+ execute_or_queue_command(command, &block)
633
+ end
634
+
635
+ # Gets details of a single EventSubscription.
636
+ # @param [String] name
637
+ # Required. Resource name of the form: `projects/*/locations/*/connections/*/
638
+ # eventSubscriptions/*`
639
+ # @param [String] fields
640
+ # Selector specifying which fields to include in a partial response.
641
+ # @param [String] quota_user
642
+ # Available to use for quota purposes for server-side applications. Can be any
643
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
644
+ # @param [Google::Apis::RequestOptions] options
645
+ # Request-specific options
646
+ #
647
+ # @yield [result, err] Result & error if block supplied
648
+ # @yieldparam result [Google::Apis::ConnectorsV1::EventSubscription] parsed result object
649
+ # @yieldparam err [StandardError] error object if request failed
650
+ #
651
+ # @return [Google::Apis::ConnectorsV1::EventSubscription]
652
+ #
653
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
654
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
655
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
656
+ def get_project_location_connection_event_subscription(name, fields: nil, quota_user: nil, options: nil, &block)
657
+ command = make_simple_command(:get, 'v1/{+name}', options)
658
+ command.response_representation = Google::Apis::ConnectorsV1::EventSubscription::Representation
659
+ command.response_class = Google::Apis::ConnectorsV1::EventSubscription
660
+ command.params['name'] = name unless name.nil?
661
+ command.query['fields'] = fields unless fields.nil?
662
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
663
+ execute_or_queue_command(command, &block)
664
+ end
665
+
666
+ # List EventSubscriptions in a given project,location and connection.
667
+ # @param [String] parent
668
+ # Required. Parent resource of the EventSubscription, of the form: `projects/*/
669
+ # locations/*/connections/*`
670
+ # @param [String] filter
671
+ # Filter. https://g3doc.corp.google.com/cloud/control2/g3doc/dev/apihosting/
672
+ # list_filtering.md#filtering.
673
+ # @param [String] order_by
674
+ # Order by parameters.
675
+ # @param [Fixnum] page_size
676
+ # Page size.
677
+ # @param [String] page_token
678
+ # Page token.
679
+ # @param [String] fields
680
+ # Selector specifying which fields to include in a partial response.
681
+ # @param [String] quota_user
682
+ # Available to use for quota purposes for server-side applications. Can be any
683
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
684
+ # @param [Google::Apis::RequestOptions] options
685
+ # Request-specific options
686
+ #
687
+ # @yield [result, err] Result & error if block supplied
688
+ # @yieldparam result [Google::Apis::ConnectorsV1::ListEventSubscriptionsResponse] parsed result object
689
+ # @yieldparam err [StandardError] error object if request failed
690
+ #
691
+ # @return [Google::Apis::ConnectorsV1::ListEventSubscriptionsResponse]
692
+ #
693
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
694
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
695
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
696
+ def list_project_location_connection_event_subscriptions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
697
+ command = make_simple_command(:get, 'v1/{+parent}/eventSubscriptions', options)
698
+ command.response_representation = Google::Apis::ConnectorsV1::ListEventSubscriptionsResponse::Representation
699
+ command.response_class = Google::Apis::ConnectorsV1::ListEventSubscriptionsResponse
700
+ command.params['parent'] = parent unless parent.nil?
701
+ command.query['filter'] = filter unless filter.nil?
702
+ command.query['orderBy'] = order_by unless order_by.nil?
703
+ command.query['pageSize'] = page_size unless page_size.nil?
704
+ command.query['pageToken'] = page_token unless page_token.nil?
705
+ command.query['fields'] = fields unless fields.nil?
706
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
707
+ execute_or_queue_command(command, &block)
708
+ end
709
+
710
+ # Updates the parameters of a single EventSubscription.
711
+ # @param [String] name
712
+ # Required. Resource name of the EventSubscription. Format: projects/`project`/
713
+ # locations/`location`/connections/`connection`/eventSubscriptions/`
714
+ # event_subscription`
715
+ # @param [Google::Apis::ConnectorsV1::EventSubscription] event_subscription_object
716
+ # @param [String] update_mask
717
+ # Required. The list of fields to update. Fields are specified relative to the
718
+ # Subscription. A field will be overwritten if it is in the mask. You can modify
719
+ # only the fields listed below. To update the EventSubscription details: * `
720
+ # serviceAccount`
721
+ # @param [String] fields
722
+ # Selector specifying which fields to include in a partial response.
723
+ # @param [String] quota_user
724
+ # Available to use for quota purposes for server-side applications. Can be any
725
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
726
+ # @param [Google::Apis::RequestOptions] options
727
+ # Request-specific options
728
+ #
729
+ # @yield [result, err] Result & error if block supplied
730
+ # @yieldparam result [Google::Apis::ConnectorsV1::Operation] parsed result object
731
+ # @yieldparam err [StandardError] error object if request failed
732
+ #
733
+ # @return [Google::Apis::ConnectorsV1::Operation]
734
+ #
735
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
736
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
737
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
738
+ def patch_project_location_connection_event_subscription(name, event_subscription_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
739
+ command = make_simple_command(:patch, 'v1/{+name}', options)
740
+ command.request_representation = Google::Apis::ConnectorsV1::EventSubscription::Representation
741
+ command.request_object = event_subscription_object
742
+ command.response_representation = Google::Apis::ConnectorsV1::Operation::Representation
743
+ command.response_class = Google::Apis::ConnectorsV1::Operation
744
+ command.params['name'] = name unless name.nil?
745
+ command.query['updateMask'] = update_mask unless update_mask.nil?
746
+ command.query['fields'] = fields unless fields.nil?
747
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
748
+ execute_or_queue_command(command, &block)
749
+ end
750
+
751
+ # RetryEventSubscription retries the registration of Subscription.
752
+ # @param [String] name
753
+ # Required. Resource name of the form: `projects/*/locations/*/connections/*/
754
+ # eventSubscriptions/*`
755
+ # @param [Google::Apis::ConnectorsV1::RetryEventSubscriptionRequest] retry_event_subscription_request_object
756
+ # @param [String] fields
757
+ # Selector specifying which fields to include in a partial response.
758
+ # @param [String] quota_user
759
+ # Available to use for quota purposes for server-side applications. Can be any
760
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
761
+ # @param [Google::Apis::RequestOptions] options
762
+ # Request-specific options
763
+ #
764
+ # @yield [result, err] Result & error if block supplied
765
+ # @yieldparam result [Google::Apis::ConnectorsV1::Operation] parsed result object
766
+ # @yieldparam err [StandardError] error object if request failed
767
+ #
768
+ # @return [Google::Apis::ConnectorsV1::Operation]
769
+ #
770
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
771
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
772
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
773
+ def retry_event_subscription(name, retry_event_subscription_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
774
+ command = make_simple_command(:post, 'v1/{+name}:retry', options)
775
+ command.request_representation = Google::Apis::ConnectorsV1::RetryEventSubscriptionRequest::Representation
776
+ command.request_object = retry_event_subscription_request_object
777
+ command.response_representation = Google::Apis::ConnectorsV1::Operation::Representation
778
+ command.response_class = Google::Apis::ConnectorsV1::Operation
779
+ command.params['name'] = name unless name.nil?
780
+ command.query['fields'] = fields unless fields.nil?
781
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
782
+ execute_or_queue_command(command, &block)
783
+ end
784
+
533
785
  # List schema of a runtime actions filtered by action name.
534
786
  # @param [String] parent
535
787
  # Required. Parent resource of RuntimeActionSchema Format: projects/`project`/
@@ -829,6 +1081,43 @@ module Google
829
1081
  execute_or_queue_command(command, &block)
830
1082
  end
831
1083
 
1084
+ # Update the global settings of a project.
1085
+ # @param [String] name
1086
+ # Output only. Resource name of the Connection. Format: projects/`project`/
1087
+ # locations/global/settings`
1088
+ # @param [Google::Apis::ConnectorsV1::Settings] settings_object
1089
+ # @param [String] update_mask
1090
+ # Required. The list of fields to update.
1091
+ # @param [String] fields
1092
+ # Selector specifying which fields to include in a partial response.
1093
+ # @param [String] quota_user
1094
+ # Available to use for quota purposes for server-side applications. Can be any
1095
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1096
+ # @param [Google::Apis::RequestOptions] options
1097
+ # Request-specific options
1098
+ #
1099
+ # @yield [result, err] Result & error if block supplied
1100
+ # @yieldparam result [Google::Apis::ConnectorsV1::Operation] parsed result object
1101
+ # @yieldparam err [StandardError] error object if request failed
1102
+ #
1103
+ # @return [Google::Apis::ConnectorsV1::Operation]
1104
+ #
1105
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1106
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1107
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1108
+ def update_project_location_global_settings(name, settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1109
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1110
+ command.request_representation = Google::Apis::ConnectorsV1::Settings::Representation
1111
+ command.request_object = settings_object
1112
+ command.response_representation = Google::Apis::ConnectorsV1::Operation::Representation
1113
+ command.response_class = Google::Apis::ConnectorsV1::Operation
1114
+ command.params['name'] = name unless name.nil?
1115
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1116
+ command.query['fields'] = fields unless fields.nil?
1117
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1118
+ execute_or_queue_command(command, &block)
1119
+ end
1120
+
832
1121
  # Creates a new ManagedZone in a given project and location.
833
1122
  # @param [String] parent
834
1123
  # Required. Parent resource of the ManagedZone, of the form: `projects/*/
@@ -1495,6 +1784,76 @@ module Google
1495
1784
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1496
1785
  execute_or_queue_command(command, &block)
1497
1786
  end
1787
+
1788
+ # Gets details of a single event type.
1789
+ # @param [String] name
1790
+ # Required. Resource name of the form: `projects/*/locations/*/providers/*/
1791
+ # connectors/*/versions/*/eventtypes/*` Only global location is supported for
1792
+ # EventType resource.
1793
+ # @param [String] fields
1794
+ # Selector specifying which fields to include in a partial response.
1795
+ # @param [String] quota_user
1796
+ # Available to use for quota purposes for server-side applications. Can be any
1797
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1798
+ # @param [Google::Apis::RequestOptions] options
1799
+ # Request-specific options
1800
+ #
1801
+ # @yield [result, err] Result & error if block supplied
1802
+ # @yieldparam result [Google::Apis::ConnectorsV1::EventType] parsed result object
1803
+ # @yieldparam err [StandardError] error object if request failed
1804
+ #
1805
+ # @return [Google::Apis::ConnectorsV1::EventType]
1806
+ #
1807
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1808
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1809
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1810
+ def get_project_location_provider_connector_version_eventtype(name, fields: nil, quota_user: nil, options: nil, &block)
1811
+ command = make_simple_command(:get, 'v1/{+name}', options)
1812
+ command.response_representation = Google::Apis::ConnectorsV1::EventType::Representation
1813
+ command.response_class = Google::Apis::ConnectorsV1::EventType
1814
+ command.params['name'] = name unless name.nil?
1815
+ command.query['fields'] = fields unless fields.nil?
1816
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1817
+ execute_or_queue_command(command, &block)
1818
+ end
1819
+
1820
+ # Lists Event Types in a given Connector Version.
1821
+ # @param [String] parent
1822
+ # Required. Parent resource of the connectors, of the form: `projects/*/
1823
+ # locations/*/providers/*/connectors/*/versions/*` Only global location is
1824
+ # supported for EventType resource.
1825
+ # @param [Fixnum] page_size
1826
+ # Page size.
1827
+ # @param [String] page_token
1828
+ # Page token.
1829
+ # @param [String] fields
1830
+ # Selector specifying which fields to include in a partial response.
1831
+ # @param [String] quota_user
1832
+ # Available to use for quota purposes for server-side applications. Can be any
1833
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1834
+ # @param [Google::Apis::RequestOptions] options
1835
+ # Request-specific options
1836
+ #
1837
+ # @yield [result, err] Result & error if block supplied
1838
+ # @yieldparam result [Google::Apis::ConnectorsV1::ListEventTypesResponse] parsed result object
1839
+ # @yieldparam err [StandardError] error object if request failed
1840
+ #
1841
+ # @return [Google::Apis::ConnectorsV1::ListEventTypesResponse]
1842
+ #
1843
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1844
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1845
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1846
+ def list_project_location_provider_connector_version_eventtypes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1847
+ command = make_simple_command(:get, 'v1/{+parent}/eventtypes', options)
1848
+ command.response_representation = Google::Apis::ConnectorsV1::ListEventTypesResponse::Representation
1849
+ command.response_class = Google::Apis::ConnectorsV1::ListEventTypesResponse
1850
+ command.params['parent'] = parent unless parent.nil?
1851
+ command.query['pageSize'] = page_size unless page_size.nil?
1852
+ command.query['pageToken'] = page_token unless page_token.nil?
1853
+ command.query['fields'] = fields unless fields.nil?
1854
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1855
+ execute_or_queue_command(command, &block)
1856
+ end
1498
1857
 
1499
1858
  protected
1500
1859
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-connectors_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.0
4
+ version: 0.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-11 00:00:00.000000000 Z
11
+ date: 2023-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-connectors_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-connectors_v1/v0.32.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-connectors_v1/v0.33.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-connectors_v1
63
63
  post_install_message:
64
64
  rdoc_options: []