google-apis-migrationcenter_v1alpha1 0.25.0 → 0.27.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -519,6 +519,263 @@ module Google
519
519
  execute_or_queue_command(command, &block)
520
520
  end
521
521
 
522
+ # Creates a new discovery client.
523
+ # @param [String] parent
524
+ # Required. Parent resource.
525
+ # @param [Google::Apis::MigrationcenterV1alpha1::DiscoveryClient] discovery_client_object
526
+ # @param [String] discovery_client_id
527
+ # Required. User specified ID for the discovery client. It will become the last
528
+ # component of the discovery client name. The ID must be unique within the
529
+ # project, is restricted to lower-cased letters and has a maximum length of 63
530
+ # characters. The ID must match the regular expression: `[a-z]([a-z0-9-]`0,61`[a-
531
+ # z0-9])?`.
532
+ # @param [String] request_id
533
+ # Optional. An optional request ID to identify requests. Specify a unique
534
+ # request ID so that if you must retry your request, the server will know to
535
+ # ignore the request if it has already been completed. The server will guarantee
536
+ # that for at least 60 minutes since the first request. For example, consider a
537
+ # situation where you make an initial request and the request times out. If you
538
+ # make the request again with the same request ID, the server can check if
539
+ # original operation with the same request ID was received, and if so, will
540
+ # ignore the second request. This prevents clients from accidentally creating
541
+ # duplicate commitments. The request ID must be a valid UUID with the exception
542
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
543
+ # @param [String] fields
544
+ # Selector specifying which fields to include in a partial response.
545
+ # @param [String] quota_user
546
+ # Available to use for quota purposes for server-side applications. Can be any
547
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
548
+ # @param [Google::Apis::RequestOptions] options
549
+ # Request-specific options
550
+ #
551
+ # @yield [result, err] Result & error if block supplied
552
+ # @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
553
+ # @yieldparam err [StandardError] error object if request failed
554
+ #
555
+ # @return [Google::Apis::MigrationcenterV1alpha1::Operation]
556
+ #
557
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
558
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
559
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
560
+ def create_project_location_discovery_client(parent, discovery_client_object = nil, discovery_client_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
561
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/discoveryClients', options)
562
+ command.request_representation = Google::Apis::MigrationcenterV1alpha1::DiscoveryClient::Representation
563
+ command.request_object = discovery_client_object
564
+ command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
565
+ command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
566
+ command.params['parent'] = parent unless parent.nil?
567
+ command.query['discoveryClientId'] = discovery_client_id unless discovery_client_id.nil?
568
+ command.query['requestId'] = request_id unless request_id.nil?
569
+ command.query['fields'] = fields unless fields.nil?
570
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
571
+ execute_or_queue_command(command, &block)
572
+ end
573
+
574
+ # Deletes a discovery client.
575
+ # @param [String] name
576
+ # Required. The discovery client name.
577
+ # @param [String] request_id
578
+ # Optional. An optional request ID to identify requests. Specify a unique
579
+ # request ID so that if you must retry your request, the server will know to
580
+ # ignore the request if it has already been completed. The server will guarantee
581
+ # that for at least 60 minutes after the first request. For example, consider a
582
+ # situation where you make an initial request and the request times out. If you
583
+ # make the request again with the same request ID, the server can check if
584
+ # original operation with the same request ID was received, and if so, will
585
+ # ignore the second request. This prevents clients from accidentally creating
586
+ # duplicate commitments. The request ID must be a valid UUID with the exception
587
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
588
+ # @param [String] fields
589
+ # Selector specifying which fields to include in a partial response.
590
+ # @param [String] quota_user
591
+ # Available to use for quota purposes for server-side applications. Can be any
592
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
593
+ # @param [Google::Apis::RequestOptions] options
594
+ # Request-specific options
595
+ #
596
+ # @yield [result, err] Result & error if block supplied
597
+ # @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
598
+ # @yieldparam err [StandardError] error object if request failed
599
+ #
600
+ # @return [Google::Apis::MigrationcenterV1alpha1::Operation]
601
+ #
602
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
603
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
604
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
605
+ def delete_project_location_discovery_client(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
606
+ command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
607
+ command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
608
+ command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
609
+ command.params['name'] = name unless name.nil?
610
+ command.query['requestId'] = request_id unless request_id.nil?
611
+ command.query['fields'] = fields unless fields.nil?
612
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
613
+ execute_or_queue_command(command, &block)
614
+ end
615
+
616
+ # Gets the details of a discovery client.
617
+ # @param [String] name
618
+ # Required. The discovery client name.
619
+ # @param [String] fields
620
+ # Selector specifying which fields to include in a partial response.
621
+ # @param [String] quota_user
622
+ # Available to use for quota purposes for server-side applications. Can be any
623
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
624
+ # @param [Google::Apis::RequestOptions] options
625
+ # Request-specific options
626
+ #
627
+ # @yield [result, err] Result & error if block supplied
628
+ # @yieldparam result [Google::Apis::MigrationcenterV1alpha1::DiscoveryClient] parsed result object
629
+ # @yieldparam err [StandardError] error object if request failed
630
+ #
631
+ # @return [Google::Apis::MigrationcenterV1alpha1::DiscoveryClient]
632
+ #
633
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
634
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
635
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
636
+ def get_project_location_discovery_client(name, fields: nil, quota_user: nil, options: nil, &block)
637
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
638
+ command.response_representation = Google::Apis::MigrationcenterV1alpha1::DiscoveryClient::Representation
639
+ command.response_class = Google::Apis::MigrationcenterV1alpha1::DiscoveryClient
640
+ command.params['name'] = name unless name.nil?
641
+ command.query['fields'] = fields unless fields.nil?
642
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
643
+ execute_or_queue_command(command, &block)
644
+ end
645
+
646
+ # Lists all the discovery clients in a given project and location.
647
+ # @param [String] parent
648
+ # Required. Parent resource.
649
+ # @param [String] filter
650
+ # Optional. Filter expression to filter results by.
651
+ # @param [String] order_by
652
+ # Optional. Field to sort by.
653
+ # @param [Fixnum] page_size
654
+ # Optional. The maximum number of items to return. The server may return fewer
655
+ # items than requested. If unspecified, the server will pick an appropriate
656
+ # default value.
657
+ # @param [String] page_token
658
+ # Optional. A page token, received from a previous `ListDiscoveryClients` call.
659
+ # Provide this to retrieve the subsequent page. When paginating, all other
660
+ # parameters provided to `ListDiscoveryClients` must match the call that
661
+ # provided the page token.
662
+ # @param [String] fields
663
+ # Selector specifying which fields to include in a partial response.
664
+ # @param [String] quota_user
665
+ # Available to use for quota purposes for server-side applications. Can be any
666
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
667
+ # @param [Google::Apis::RequestOptions] options
668
+ # Request-specific options
669
+ #
670
+ # @yield [result, err] Result & error if block supplied
671
+ # @yieldparam result [Google::Apis::MigrationcenterV1alpha1::ListDiscoveryClientsResponse] parsed result object
672
+ # @yieldparam err [StandardError] error object if request failed
673
+ #
674
+ # @return [Google::Apis::MigrationcenterV1alpha1::ListDiscoveryClientsResponse]
675
+ #
676
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
677
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
678
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
679
+ def list_project_location_discovery_clients(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
680
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/discoveryClients', options)
681
+ command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListDiscoveryClientsResponse::Representation
682
+ command.response_class = Google::Apis::MigrationcenterV1alpha1::ListDiscoveryClientsResponse
683
+ command.params['parent'] = parent unless parent.nil?
684
+ command.query['filter'] = filter unless filter.nil?
685
+ command.query['orderBy'] = order_by unless order_by.nil?
686
+ command.query['pageSize'] = page_size unless page_size.nil?
687
+ command.query['pageToken'] = page_token unless page_token.nil?
688
+ command.query['fields'] = fields unless fields.nil?
689
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
690
+ execute_or_queue_command(command, &block)
691
+ end
692
+
693
+ # Updates a discovery client.
694
+ # @param [String] name
695
+ # Output only. Identifier. Full name of this discovery client.
696
+ # @param [Google::Apis::MigrationcenterV1alpha1::DiscoveryClient] discovery_client_object
697
+ # @param [String] request_id
698
+ # Optional. An optional request ID to identify requests. Specify a unique
699
+ # request ID so that if you must retry your request, the server will know to
700
+ # ignore the request if it has already been completed. The server will guarantee
701
+ # that for at least 60 minutes since the first request. For example, consider a
702
+ # situation where you make an initial request and the request times out. If you
703
+ # make the request again with the same request ID, the server can check if
704
+ # original operation with the same request ID was received, and if so, will
705
+ # ignore the second request. This prevents clients from accidentally creating
706
+ # duplicate commitments. The request ID must be a valid UUID with the exception
707
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
708
+ # @param [String] update_mask
709
+ # Required. Update mask is used to specify the fields to be overwritten in the `
710
+ # DiscoveryClient` resource by the update. The values specified in the `
711
+ # update_mask` field are relative to the resource, not the full request. A field
712
+ # will be overwritten if it is in the mask. A single * value in the mask lets
713
+ # you to overwrite all fields.
714
+ # @param [String] fields
715
+ # Selector specifying which fields to include in a partial response.
716
+ # @param [String] quota_user
717
+ # Available to use for quota purposes for server-side applications. Can be any
718
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
719
+ # @param [Google::Apis::RequestOptions] options
720
+ # Request-specific options
721
+ #
722
+ # @yield [result, err] Result & error if block supplied
723
+ # @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
724
+ # @yieldparam err [StandardError] error object if request failed
725
+ #
726
+ # @return [Google::Apis::MigrationcenterV1alpha1::Operation]
727
+ #
728
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
729
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
730
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
731
+ def patch_project_location_discovery_client(name, discovery_client_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
732
+ command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
733
+ command.request_representation = Google::Apis::MigrationcenterV1alpha1::DiscoveryClient::Representation
734
+ command.request_object = discovery_client_object
735
+ command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
736
+ command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
737
+ command.params['name'] = name unless name.nil?
738
+ command.query['requestId'] = request_id unless request_id.nil?
739
+ command.query['updateMask'] = update_mask unless update_mask.nil?
740
+ command.query['fields'] = fields unless fields.nil?
741
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
742
+ execute_or_queue_command(command, &block)
743
+ end
744
+
745
+ # Sends a discovery client heartbeat. Healthy clients are expected to send
746
+ # heartbeats regularly (normally every few minutes).
747
+ # @param [String] name
748
+ # Required. The discovery client name.
749
+ # @param [Google::Apis::MigrationcenterV1alpha1::SendDiscoveryClientHeartbeatRequest] send_discovery_client_heartbeat_request_object
750
+ # @param [String] fields
751
+ # Selector specifying which fields to include in a partial response.
752
+ # @param [String] quota_user
753
+ # Available to use for quota purposes for server-side applications. Can be any
754
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
755
+ # @param [Google::Apis::RequestOptions] options
756
+ # Request-specific options
757
+ #
758
+ # @yield [result, err] Result & error if block supplied
759
+ # @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
760
+ # @yieldparam err [StandardError] error object if request failed
761
+ #
762
+ # @return [Google::Apis::MigrationcenterV1alpha1::Operation]
763
+ #
764
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
765
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
766
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
767
+ def send_project_location_discovery_client_heartbeat(name, send_discovery_client_heartbeat_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
768
+ command = make_simple_command(:post, 'v1alpha1/{+name}:sendHeartbeat', options)
769
+ command.request_representation = Google::Apis::MigrationcenterV1alpha1::SendDiscoveryClientHeartbeatRequest::Representation
770
+ command.request_object = send_discovery_client_heartbeat_request_object
771
+ command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
772
+ command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
773
+ command.params['name'] = name unless name.nil?
774
+ command.query['fields'] = fields unless fields.nil?
775
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
776
+ execute_or_queue_command(command, &block)
777
+ end
778
+
522
779
  # Adds assets to a group.
523
780
  # @param [String] group
524
781
  # Required. Group reference.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-migrationcenter_v1alpha1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.0
4
+ version: 0.27.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: 2024-03-17 00:00:00.000000000 Z
11
+ date: 2024-04-21 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-migrationcenter_v1alpha1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-migrationcenter_v1alpha1/v0.25.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-migrationcenter_v1alpha1/v0.27.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-migrationcenter_v1alpha1
63
63
  post_install_message:
64
64
  rdoc_options: []