google-apis-migrationcenter_v1alpha1 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1612,6 +1612,351 @@ module Google
1612
1612
  execute_or_queue_command(command, &block)
1613
1613
  end
1614
1614
 
1615
+ # Creates a report configuration.
1616
+ # @param [String] parent
1617
+ # Required. Value for parent.
1618
+ # @param [Google::Apis::MigrationcenterV1alpha1::ReportConfig] report_config_object
1619
+ # @param [String] report_config_id
1620
+ # Required. User specified ID for the report config. It will become the last
1621
+ # component of the report config name. The ID must be unique within the project,
1622
+ # must conform with RFC-1034, is restricted to lower-cased letters, and has a
1623
+ # maximum length of 63 characters. The ID must match the regular expression: [a-
1624
+ # z]([a-z0-9-]`0,61`[a-z0-9])?.
1625
+ # @param [String] request_id
1626
+ # Optional. An optional request ID to identify requests. Specify a unique
1627
+ # request ID so that if you must retry your request, the server will know to
1628
+ # ignore the request if it has already been completed. The server will guarantee
1629
+ # that for at least 60 minutes since the first request. For example, consider a
1630
+ # situation where you make an initial request and the request times out. If you
1631
+ # make the request again with the same request ID, the server can check if
1632
+ # original operation with the same request ID was received, and if so, will
1633
+ # ignore the second request. This prevents clients from accidentally creating
1634
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1635
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1636
+ # @param [String] fields
1637
+ # Selector specifying which fields to include in a partial response.
1638
+ # @param [String] quota_user
1639
+ # Available to use for quota purposes for server-side applications. Can be any
1640
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1641
+ # @param [Google::Apis::RequestOptions] options
1642
+ # Request-specific options
1643
+ #
1644
+ # @yield [result, err] Result & error if block supplied
1645
+ # @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
1646
+ # @yieldparam err [StandardError] error object if request failed
1647
+ #
1648
+ # @return [Google::Apis::MigrationcenterV1alpha1::Operation]
1649
+ #
1650
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1651
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1652
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1653
+ def create_project_location_report_config(parent, report_config_object = nil, report_config_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1654
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/reportConfigs', options)
1655
+ command.request_representation = Google::Apis::MigrationcenterV1alpha1::ReportConfig::Representation
1656
+ command.request_object = report_config_object
1657
+ command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
1658
+ command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
1659
+ command.params['parent'] = parent unless parent.nil?
1660
+ command.query['reportConfigId'] = report_config_id unless report_config_id.nil?
1661
+ command.query['requestId'] = request_id unless request_id.nil?
1662
+ command.query['fields'] = fields unless fields.nil?
1663
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1664
+ execute_or_queue_command(command, &block)
1665
+ end
1666
+
1667
+ # Deletes a ReportConfig.
1668
+ # @param [String] name
1669
+ # Required. Name of the resource.
1670
+ # @param [Boolean] force
1671
+ # Optional. If set to `true`, any child `Reports` of this entity will also be
1672
+ # deleted. If set to `false`, the request only works if the resource has no
1673
+ # children.
1674
+ # @param [String] request_id
1675
+ # Optional. An optional request ID to identify requests. Specify a unique
1676
+ # request ID so that if you must retry your request, the server will know to
1677
+ # ignore the request if it has already been completed. The server will guarantee
1678
+ # that for at least 60 minutes after the first request. For example, consider a
1679
+ # situation where you make an initial request and the request times out. If you
1680
+ # make the request again with the same request ID, the server can check if
1681
+ # original operation with the same request ID was received, and if so, will
1682
+ # ignore the second request. This prevents clients from accidentally creating
1683
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1684
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1685
+ # @param [String] fields
1686
+ # Selector specifying which fields to include in a partial response.
1687
+ # @param [String] quota_user
1688
+ # Available to use for quota purposes for server-side applications. Can be any
1689
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1690
+ # @param [Google::Apis::RequestOptions] options
1691
+ # Request-specific options
1692
+ #
1693
+ # @yield [result, err] Result & error if block supplied
1694
+ # @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
1695
+ # @yieldparam err [StandardError] error object if request failed
1696
+ #
1697
+ # @return [Google::Apis::MigrationcenterV1alpha1::Operation]
1698
+ #
1699
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1700
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1701
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1702
+ def delete_project_location_report_config(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1703
+ command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
1704
+ command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
1705
+ command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
1706
+ command.params['name'] = name unless name.nil?
1707
+ command.query['force'] = force unless force.nil?
1708
+ command.query['requestId'] = request_id unless request_id.nil?
1709
+ command.query['fields'] = fields unless fields.nil?
1710
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1711
+ execute_or_queue_command(command, &block)
1712
+ end
1713
+
1714
+ # Gets details of a single ReportConfig.
1715
+ # @param [String] name
1716
+ # Required. Name of the resource.
1717
+ # @param [String] fields
1718
+ # Selector specifying which fields to include in a partial response.
1719
+ # @param [String] quota_user
1720
+ # Available to use for quota purposes for server-side applications. Can be any
1721
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1722
+ # @param [Google::Apis::RequestOptions] options
1723
+ # Request-specific options
1724
+ #
1725
+ # @yield [result, err] Result & error if block supplied
1726
+ # @yieldparam result [Google::Apis::MigrationcenterV1alpha1::ReportConfig] parsed result object
1727
+ # @yieldparam err [StandardError] error object if request failed
1728
+ #
1729
+ # @return [Google::Apis::MigrationcenterV1alpha1::ReportConfig]
1730
+ #
1731
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1732
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1733
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1734
+ def get_project_location_report_config(name, fields: nil, quota_user: nil, options: nil, &block)
1735
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
1736
+ command.response_representation = Google::Apis::MigrationcenterV1alpha1::ReportConfig::Representation
1737
+ command.response_class = Google::Apis::MigrationcenterV1alpha1::ReportConfig
1738
+ command.params['name'] = name unless name.nil?
1739
+ command.query['fields'] = fields unless fields.nil?
1740
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1741
+ execute_or_queue_command(command, &block)
1742
+ end
1743
+
1744
+ # Lists ReportConfigs in a given project and location.
1745
+ # @param [String] parent
1746
+ # Required. Parent value for `ListReportConfigsRequest`.
1747
+ # @param [String] filter
1748
+ # Filtering results.
1749
+ # @param [String] order_by
1750
+ # Field to sort by. See https://google.aip.dev/132#ordering for more details.
1751
+ # @param [Fixnum] page_size
1752
+ # Requested page size. Server may return fewer items than requested. If
1753
+ # unspecified, server will pick an appropriate default.
1754
+ # @param [String] page_token
1755
+ # A token identifying a page of results the server should return.
1756
+ # @param [String] fields
1757
+ # Selector specifying which fields to include in a partial response.
1758
+ # @param [String] quota_user
1759
+ # Available to use for quota purposes for server-side applications. Can be any
1760
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1761
+ # @param [Google::Apis::RequestOptions] options
1762
+ # Request-specific options
1763
+ #
1764
+ # @yield [result, err] Result & error if block supplied
1765
+ # @yieldparam result [Google::Apis::MigrationcenterV1alpha1::ListReportConfigsResponse] parsed result object
1766
+ # @yieldparam err [StandardError] error object if request failed
1767
+ #
1768
+ # @return [Google::Apis::MigrationcenterV1alpha1::ListReportConfigsResponse]
1769
+ #
1770
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1771
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1772
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1773
+ def list_project_location_report_configs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1774
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/reportConfigs', options)
1775
+ command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListReportConfigsResponse::Representation
1776
+ command.response_class = Google::Apis::MigrationcenterV1alpha1::ListReportConfigsResponse
1777
+ command.params['parent'] = parent unless parent.nil?
1778
+ command.query['filter'] = filter unless filter.nil?
1779
+ command.query['orderBy'] = order_by unless order_by.nil?
1780
+ command.query['pageSize'] = page_size unless page_size.nil?
1781
+ command.query['pageToken'] = page_token unless page_token.nil?
1782
+ command.query['fields'] = fields unless fields.nil?
1783
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1784
+ execute_or_queue_command(command, &block)
1785
+ end
1786
+
1787
+ # Creates a report.
1788
+ # @param [String] parent
1789
+ # Required. Value for parent.
1790
+ # @param [Google::Apis::MigrationcenterV1alpha1::Report] report_object
1791
+ # @param [String] report_id
1792
+ # Required. User specified id for the report. It will become the last component
1793
+ # of the report name. The id must be unique within the project, must conform
1794
+ # with RFC-1034, is restricted to lower-cased letters, and has a maximum length
1795
+ # of 63 characters. The id must match the regular expression: [a-z]([a-z0-9-]`0,
1796
+ # 61`[a-z0-9])?.
1797
+ # @param [String] request_id
1798
+ # Optional. An optional request ID to identify requests. Specify a unique
1799
+ # request ID so that if you must retry your request, the server will know to
1800
+ # ignore the request if it has already been completed. The server will guarantee
1801
+ # that for at least 60 minutes since the first request. For example, consider a
1802
+ # situation where you make an initial request and the request times out. If you
1803
+ # make the request again with the same request ID, the server can check if
1804
+ # original operation with the same request ID was received, and if so, will
1805
+ # ignore the second request. This prevents clients from accidentally creating
1806
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1807
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1808
+ # @param [String] fields
1809
+ # Selector specifying which fields to include in a partial response.
1810
+ # @param [String] quota_user
1811
+ # Available to use for quota purposes for server-side applications. Can be any
1812
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1813
+ # @param [Google::Apis::RequestOptions] options
1814
+ # Request-specific options
1815
+ #
1816
+ # @yield [result, err] Result & error if block supplied
1817
+ # @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
1818
+ # @yieldparam err [StandardError] error object if request failed
1819
+ #
1820
+ # @return [Google::Apis::MigrationcenterV1alpha1::Operation]
1821
+ #
1822
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1823
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1824
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1825
+ def create_project_location_report_config_report(parent, report_object = nil, report_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1826
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/reports', options)
1827
+ command.request_representation = Google::Apis::MigrationcenterV1alpha1::Report::Representation
1828
+ command.request_object = report_object
1829
+ command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
1830
+ command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
1831
+ command.params['parent'] = parent unless parent.nil?
1832
+ command.query['reportId'] = report_id unless report_id.nil?
1833
+ command.query['requestId'] = request_id unless request_id.nil?
1834
+ command.query['fields'] = fields unless fields.nil?
1835
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1836
+ execute_or_queue_command(command, &block)
1837
+ end
1838
+
1839
+ # Deletes a Report.
1840
+ # @param [String] name
1841
+ # Required. Name of the resource.
1842
+ # @param [String] request_id
1843
+ # Optional. An optional request ID to identify requests. Specify a unique
1844
+ # request ID so that if you must retry your request, the server will know to
1845
+ # ignore the request if it has already been completed. The server will guarantee
1846
+ # that for at least 60 minutes after the first request. For example, consider a
1847
+ # situation where you make an initial request and the request times out. If you
1848
+ # make the request again with the same request ID, the server can check if
1849
+ # original operation with the same request ID was received, and if so, will
1850
+ # ignore the second request. This prevents clients from accidentally creating
1851
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1852
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1853
+ # @param [String] fields
1854
+ # Selector specifying which fields to include in a partial response.
1855
+ # @param [String] quota_user
1856
+ # Available to use for quota purposes for server-side applications. Can be any
1857
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1858
+ # @param [Google::Apis::RequestOptions] options
1859
+ # Request-specific options
1860
+ #
1861
+ # @yield [result, err] Result & error if block supplied
1862
+ # @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
1863
+ # @yieldparam err [StandardError] error object if request failed
1864
+ #
1865
+ # @return [Google::Apis::MigrationcenterV1alpha1::Operation]
1866
+ #
1867
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1868
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1869
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1870
+ def delete_project_location_report_config_report(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1871
+ command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
1872
+ command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
1873
+ command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
1874
+ command.params['name'] = name unless name.nil?
1875
+ command.query['requestId'] = request_id unless request_id.nil?
1876
+ command.query['fields'] = fields unless fields.nil?
1877
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1878
+ execute_or_queue_command(command, &block)
1879
+ end
1880
+
1881
+ # Gets details of a single Report.
1882
+ # @param [String] name
1883
+ # Required. Name of the resource.
1884
+ # @param [String] view
1885
+ # Determines what information to retrieve for the Report.
1886
+ # @param [String] fields
1887
+ # Selector specifying which fields to include in a partial response.
1888
+ # @param [String] quota_user
1889
+ # Available to use for quota purposes for server-side applications. Can be any
1890
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1891
+ # @param [Google::Apis::RequestOptions] options
1892
+ # Request-specific options
1893
+ #
1894
+ # @yield [result, err] Result & error if block supplied
1895
+ # @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Report] parsed result object
1896
+ # @yieldparam err [StandardError] error object if request failed
1897
+ #
1898
+ # @return [Google::Apis::MigrationcenterV1alpha1::Report]
1899
+ #
1900
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1901
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1902
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1903
+ def get_project_location_report_config_report(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
1904
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
1905
+ command.response_representation = Google::Apis::MigrationcenterV1alpha1::Report::Representation
1906
+ command.response_class = Google::Apis::MigrationcenterV1alpha1::Report
1907
+ command.params['name'] = name unless name.nil?
1908
+ command.query['view'] = view unless view.nil?
1909
+ command.query['fields'] = fields unless fields.nil?
1910
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1911
+ execute_or_queue_command(command, &block)
1912
+ end
1913
+
1914
+ # Lists Reports in a given ReportConfig.
1915
+ # @param [String] parent
1916
+ # Required. Parent value for `ListReportsRequest`.
1917
+ # @param [String] filter
1918
+ # Filtering results.
1919
+ # @param [String] order_by
1920
+ # Field to sort by. See https://google.aip.dev/132#ordering for more details.
1921
+ # @param [Fixnum] page_size
1922
+ # Requested page size. The server may return fewer items than requested. If
1923
+ # unspecified, the server will pick an appropriate default value.
1924
+ # @param [String] page_token
1925
+ # A token identifying a page of results that the server should return.
1926
+ # @param [String] view
1927
+ # Determines what information to retrieve for each Report.
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::MigrationcenterV1alpha1::ListReportsResponse] parsed result object
1938
+ # @yieldparam err [StandardError] error object if request failed
1939
+ #
1940
+ # @return [Google::Apis::MigrationcenterV1alpha1::ListReportsResponse]
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 list_project_location_report_config_reports(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
1946
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/reports', options)
1947
+ command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListReportsResponse::Representation
1948
+ command.response_class = Google::Apis::MigrationcenterV1alpha1::ListReportsResponse
1949
+ command.params['parent'] = parent unless parent.nil?
1950
+ command.query['filter'] = filter unless filter.nil?
1951
+ command.query['orderBy'] = order_by unless order_by.nil?
1952
+ command.query['pageSize'] = page_size unless page_size.nil?
1953
+ command.query['pageToken'] = page_token unless page_token.nil?
1954
+ command.query['view'] = view unless view.nil?
1955
+ command.query['fields'] = fields unless fields.nil?
1956
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1957
+ execute_or_queue_command(command, &block)
1958
+ end
1959
+
1615
1960
  # Creates a new source in a given project and location.
1616
1961
  # @param [String] parent
1617
1962
  # Required. Value for parent.
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.2.0
4
+ version: 0.3.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-03-26 00:00:00.000000000 Z
11
+ date: 2023-04-02 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.2.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-migrationcenter_v1alpha1/v0.3.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: []