diff --git a/api_names_out.yaml b/api_names_out.yaml index 991f81d4ec5..3a2d1bb49ff 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -301182,6 +301182,10 @@ "/migrationcenter:v1alpha1/ExecutionReport/jobErrors": job_errors "/migrationcenter:v1alpha1/ExecutionReport/jobErrors/job_error": job_error "/migrationcenter:v1alpha1/ExecutionReport/totalRowsCount": total_rows_count +"/migrationcenter:v1alpha1/ExportReportRequest": export_report_request +"/migrationcenter:v1alpha1/ExportReportResponse": export_report_response +"/migrationcenter:v1alpha1/ExportReportResponse/reportArtifactLinks": report_artifact_links +"/migrationcenter:v1alpha1/ExportReportResponse/reportArtifactLinks/report_artifact_link": report_artifact_link "/migrationcenter:v1alpha1/FileValidationReport": file_validation_report "/migrationcenter:v1alpha1/FileValidationReport/fileErrors": file_errors "/migrationcenter:v1alpha1/FileValidationReport/fileErrors/file_error": file_error @@ -301210,6 +301214,8 @@ "/migrationcenter:v1alpha1/GCSPayloadInfo": gcs_payload_info "/migrationcenter:v1alpha1/GCSPayloadInfo/format": format "/migrationcenter:v1alpha1/GCSPayloadInfo/path": path +"/migrationcenter:v1alpha1/GenerateReportArtifactLinkRequest": generate_report_artifact_link_request +"/migrationcenter:v1alpha1/GenerateReportArtifactLinkRequest/artifactType": artifact_type "/migrationcenter:v1alpha1/GenericInsight": generic_insight "/migrationcenter:v1alpha1/GenericInsight/additionalInformation": additional_information "/migrationcenter:v1alpha1/GenericInsight/additionalInformation/additional_information": additional_information @@ -301409,6 +301415,10 @@ "/migrationcenter:v1alpha1/ListReportConfigsResponse/reportConfigs/report_config": report_config "/migrationcenter:v1alpha1/ListReportConfigsResponse/unreachable": unreachable "/migrationcenter:v1alpha1/ListReportConfigsResponse/unreachable/unreachable": unreachable +"/migrationcenter:v1alpha1/ListReportExportJobsResponse": list_report_export_jobs_response +"/migrationcenter:v1alpha1/ListReportExportJobsResponse/nextPageToken": next_page_token +"/migrationcenter:v1alpha1/ListReportExportJobsResponse/reportExportJobs": report_export_jobs +"/migrationcenter:v1alpha1/ListReportExportJobsResponse/reportExportJobs/report_export_job": report_export_job "/migrationcenter:v1alpha1/ListReportsResponse": list_reports_response "/migrationcenter:v1alpha1/ListReportsResponse/nextPageToken": next_page_token "/migrationcenter:v1alpha1/ListReportsResponse/reports": reports @@ -301665,8 +301675,13 @@ "/migrationcenter:v1alpha1/Report/name": name "/migrationcenter:v1alpha1/Report/state": state "/migrationcenter:v1alpha1/Report/summary": summary +"/migrationcenter:v1alpha1/Report/tcoDetails": tco_details "/migrationcenter:v1alpha1/Report/type": type "/migrationcenter:v1alpha1/Report/updateTime": update_time +"/migrationcenter:v1alpha1/ReportArtifactLink": report_artifact_link +"/migrationcenter:v1alpha1/ReportArtifactLink/displayName": display_name +"/migrationcenter:v1alpha1/ReportArtifactLink/uri": uri +"/migrationcenter:v1alpha1/ReportArtifactLink/uriExpirationTime": uri_expiration_time "/migrationcenter:v1alpha1/ReportAssetFramesResponse": report_asset_frames_response "/migrationcenter:v1alpha1/ReportConfig": report_config "/migrationcenter:v1alpha1/ReportConfig/createTime": create_time @@ -301679,6 +301694,22 @@ "/migrationcenter:v1alpha1/ReportConfigGroupPreferenceSetAssignment": report_config_group_preference_set_assignment "/migrationcenter:v1alpha1/ReportConfigGroupPreferenceSetAssignment/group": group "/migrationcenter:v1alpha1/ReportConfigGroupPreferenceSetAssignment/preferenceSet": preference_set +"/migrationcenter:v1alpha1/ReportExportExecution": report_export_execution +"/migrationcenter:v1alpha1/ReportExportExecution/endTime": end_time +"/migrationcenter:v1alpha1/ReportExportExecution/executionId": execution_id +"/migrationcenter:v1alpha1/ReportExportExecution/expireTime": expire_time +"/migrationcenter:v1alpha1/ReportExportExecution/progressPercentage": progress_percentage +"/migrationcenter:v1alpha1/ReportExportExecution/result": result +"/migrationcenter:v1alpha1/ReportExportExecution/startTime": start_time +"/migrationcenter:v1alpha1/ReportExportExecutionResult": report_export_execution_result +"/migrationcenter:v1alpha1/ReportExportExecutionResult/error": error +"/migrationcenter:v1alpha1/ReportExportExecutionResult/outputFiles": output_files +"/migrationcenter:v1alpha1/ReportExportExecutionResult/signedUris": signed_uris +"/migrationcenter:v1alpha1/ReportExportJob": report_export_job +"/migrationcenter:v1alpha1/ReportExportJob/name": name +"/migrationcenter:v1alpha1/ReportExportJob/recentExecutions": recent_executions +"/migrationcenter:v1alpha1/ReportExportJob/recentExecutions/recent_execution": recent_execution +"/migrationcenter:v1alpha1/ReportExportJob/signedUriDestination": signed_uri_destination "/migrationcenter:v1alpha1/ReportSummary": report_summary "/migrationcenter:v1alpha1/ReportSummary/allAssetsStats": all_assets_stats "/migrationcenter:v1alpha1/ReportSummary/databaseStats": database_stats @@ -301784,6 +301815,8 @@ "/migrationcenter:v1alpha1/ReportSummaryVMWareNodeAllocation/allocatedAssetCount": allocated_asset_count "/migrationcenter:v1alpha1/ReportSummaryVMWareNodeAllocation/nodeCount": node_count "/migrationcenter:v1alpha1/ReportSummaryVMWareNodeAllocation/vmwareNode": vmware_node +"/migrationcenter:v1alpha1/ReportTotalCostOfOwnershipDetails": report_total_cost_of_ownership_details +"/migrationcenter:v1alpha1/ReportTotalCostOfOwnershipDetails/hasPricingData": has_pricing_data "/migrationcenter:v1alpha1/ResourceLocation": resource_location "/migrationcenter:v1alpha1/ResourceLocation/region": region "/migrationcenter:v1alpha1/RunAssetsExportJobRequest": run_assets_export_job_request @@ -301792,6 +301825,10 @@ "/migrationcenter:v1alpha1/RunAssetsExportJobResponse/assetsExportJobExecution": assets_export_job_execution "/migrationcenter:v1alpha1/RunImportJobRequest": run_import_job_request "/migrationcenter:v1alpha1/RunImportJobRequest/requestId": request_id +"/migrationcenter:v1alpha1/RunReportExportJobRequest": run_report_export_job_request +"/migrationcenter:v1alpha1/RunReportExportJobRequest/requestId": request_id +"/migrationcenter:v1alpha1/RunReportExportJobResponse": run_report_export_job_response +"/migrationcenter:v1alpha1/RunReportExportJobResponse/reportExportExecution": report_export_execution "/migrationcenter:v1alpha1/RunningProcess": running_process "/migrationcenter:v1alpha1/RunningProcess/attributes": attributes "/migrationcenter:v1alpha1/RunningProcess/attributes/attribute": attribute @@ -302194,6 +302231,8 @@ "/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.list/pageSize": page_size "/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.list/pageToken": page_token "/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.list/parent": parent +"/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.artifactLink": artifact_project_location_report_config_report_link +"/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.artifactLink/name": name "/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.create": create_project_location_report_config_report "/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.create/parent": parent "/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.create/reportId": report_id @@ -302201,6 +302240,8 @@ "/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.delete": delete_project_location_report_config_report "/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.delete/name": name "/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.delete/requestId": request_id +"/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.export": export_report +"/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.export/name": name "/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.get": get_project_location_report_config_report "/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.get/name": name "/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.get/view": view @@ -302211,6 +302252,21 @@ "/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.list/pageToken": page_token "/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.list/parent": parent "/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.list/view": view +"/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.reportExportJobs.create": create_project_location_report_config_report_report_export_job +"/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.reportExportJobs.create/parent": parent +"/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.reportExportJobs.create/reportExportJobId": report_export_job_id +"/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.reportExportJobs.create/requestId": request_id +"/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.reportExportJobs.delete": delete_project_location_report_config_report_report_export_job +"/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.reportExportJobs.delete/name": name +"/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.reportExportJobs.delete/requestId": request_id +"/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.reportExportJobs.get": get_project_location_report_config_report_report_export_job +"/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.reportExportJobs.get/name": name +"/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.reportExportJobs.list": list_project_location_report_config_report_report_export_jobs +"/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.reportExportJobs.list/pageSize": page_size +"/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.reportExportJobs.list/pageToken": page_token +"/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.reportExportJobs.list/parent": parent +"/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.reportExportJobs.run": run_report_export_job +"/migrationcenter:v1alpha1/migrationcenter.projects.locations.reportConfigs.reports.reportExportJobs.run/name": name "/migrationcenter:v1alpha1/migrationcenter.projects.locations.sources.create": create_project_location_source "/migrationcenter:v1alpha1/migrationcenter.projects.locations.sources.create/parent": parent "/migrationcenter:v1alpha1/migrationcenter.projects.locations.sources.create/requestId": request_id diff --git a/generated/google-apis-migrationcenter_v1alpha1/CHANGELOG.md b/generated/google-apis-migrationcenter_v1alpha1/CHANGELOG.md index 91bd6c7636d..e64a3233758 100644 --- a/generated/google-apis-migrationcenter_v1alpha1/CHANGELOG.md +++ b/generated/google-apis-migrationcenter_v1alpha1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-migrationcenter_v1alpha1 +### v0.51.0 (2025-11-16) + +* Regenerated from discovery document revision 20251106 + ### v0.50.0 (2025-11-02) * Regenerated from discovery document revision 20251023 diff --git a/generated/google-apis-migrationcenter_v1alpha1/lib/google/apis/migrationcenter_v1alpha1/classes.rb b/generated/google-apis-migrationcenter_v1alpha1/lib/google/apis/migrationcenter_v1alpha1/classes.rb index 8dbd54e6d63..2b594d3417c 100644 --- a/generated/google-apis-migrationcenter_v1alpha1/lib/google/apis/migrationcenter_v1alpha1/classes.rb +++ b/generated/google-apis-migrationcenter_v1alpha1/lib/google/apis/migrationcenter_v1alpha1/classes.rb @@ -3322,6 +3322,38 @@ def update!(**args) end end + # Request to export a detailed pricing report. + class ExportReportRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Response message for exporting report. + class ExportReportResponse + include Google::Apis::Core::Hashable + + # For large generated report, we may return multiple links + # Corresponds to the JSON property `reportArtifactLinks` + # @return [Array] + attr_accessor :report_artifact_links + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @report_artifact_links = args[:report_artifact_links] if args.key?(:report_artifact_links) + end + end + # A resource that aggregates the validation errors found in an import job file. class FileValidationReport include Google::Apis::Core::Hashable @@ -3518,6 +3550,25 @@ def update!(**args) end end + # A request to generate a link to an artifact for a Report. + class GenerateReportArtifactLinkRequest + include Google::Apis::Core::Hashable + + # Required. Type of the artifact requested. + # Corresponds to the JSON property `artifactType` + # @return [String] + attr_accessor :artifact_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @artifact_type = args[:artifact_type] if args.key?(:artifact_type) + end + end + # A generic insight about an asset. class GenericInsight include Google::Apis::Core::Hashable @@ -4798,6 +4849,31 @@ def update!(**args) end end + # Response message for listing report export jobs. + class ListReportExportJobsResponse + include Google::Apis::Core::Hashable + + # Output only. A token identifying a page of results the server should return. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Output only. The list of report export jobs. + # Corresponds to the JSON property `reportExportJobs` + # @return [Array] + attr_accessor :report_export_jobs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @report_export_jobs = args[:report_export_jobs] if args.key?(:report_export_jobs) + end + end + # Response message for listing Reports. class ListReportsResponse include Google::Apis::Core::Hashable @@ -6550,6 +6626,11 @@ class Report # @return [Google::Apis::MigrationcenterV1alpha1::ReportSummary] attr_accessor :summary + # Detailed data related to Total Cost of Ownership (TCO) pricing. + # Corresponds to the JSON property `tcoDetails` + # @return [Google::Apis::MigrationcenterV1alpha1::ReportTotalCostOfOwnershipDetails] + attr_accessor :tco_details + # Report type. # Corresponds to the JSON property `type` # @return [String] @@ -6572,11 +6653,43 @@ def update!(**args) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) @summary = args[:summary] if args.key?(:summary) + @tco_details = args[:tco_details] if args.key?(:tco_details) @type = args[:type] if args.key?(:type) @update_time = args[:update_time] if args.key?(:update_time) end end + # Describes a link to a generated artifact of the report. + class ReportArtifactLink + include Google::Apis::Core::Hashable + + # Output only. Human friendly display name of the artifact. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Output only. URI of the artifact. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + # Output only. Expiration time of the URI. + # Corresponds to the JSON property `uriExpirationTime` + # @return [String] + attr_accessor :uri_expiration_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @uri = args[:uri] if args.key?(:uri) + @uri_expiration_time = args[:uri_expiration_time] if args.key?(:uri_expiration_time) + end + end + # A response to a call to `ReportAssetFrame`. class ReportAssetFramesResponse include Google::Apis::Core::Hashable @@ -6664,6 +6777,124 @@ def update!(**args) end end + # Execution status of report export operation. + class ReportExportExecution + include Google::Apis::Core::Hashable + + # Output only. Completion time of the export. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Output only. Globally unique identifier of the execution. + # Corresponds to the JSON property `executionId` + # @return [String] + attr_accessor :execution_id + + # Output only. Expiration time for the export and artifacts. + # Corresponds to the JSON property `expireTime` + # @return [String] + attr_accessor :expire_time + + # Output only. Represents the progress of the execution. It reaches 100 when the + # execution is successfully completed. When the execution finishes with a + # failure, the progress is set to 0. + # Corresponds to the JSON property `progressPercentage` + # @return [Fixnum] + attr_accessor :progress_percentage + + # Contains the result of the report export. + # Corresponds to the JSON property `result` + # @return [Google::Apis::MigrationcenterV1alpha1::ReportExportExecutionResult] + attr_accessor :result + + # Output only. Execution start timestamp. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time = args[:end_time] if args.key?(:end_time) + @execution_id = args[:execution_id] if args.key?(:execution_id) + @expire_time = args[:expire_time] if args.key?(:expire_time) + @progress_percentage = args[:progress_percentage] if args.key?(:progress_percentage) + @result = args[:result] if args.key?(:result) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + + # Contains the result of the report export. + class ReportExportExecutionResult + include Google::Apis::Core::Hashable + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `error` + # @return [Google::Apis::MigrationcenterV1alpha1::Status] + attr_accessor :error + + # Contains a list of output files. + # Corresponds to the JSON property `outputFiles` + # @return [Google::Apis::MigrationcenterV1alpha1::OutputFileList] + attr_accessor :output_files + + # Contains a list of Signed URIs. + # Corresponds to the JSON property `signedUris` + # @return [Google::Apis::MigrationcenterV1alpha1::SignedUris] + attr_accessor :signed_uris + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error = args[:error] if args.key?(:error) + @output_files = args[:output_files] if args.key?(:output_files) + @signed_uris = args[:signed_uris] if args.key?(:signed_uris) + end + end + + # Report export job message. + class ReportExportJob + include Google::Apis::Core::Hashable + + # Output only. Identifier. Resource name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. Recent not expired executions of the export report job. + # Corresponds to the JSON property `recentExecutions` + # @return [Array] + attr_accessor :recent_executions + + # Signed URI destination configuration. + # Corresponds to the JSON property `signedUriDestination` + # @return [Google::Apis::MigrationcenterV1alpha1::SignedUriDestination] + attr_accessor :signed_uri_destination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @recent_executions = args[:recent_executions] if args.key?(:recent_executions) + @signed_uri_destination = args[:signed_uri_destination] if args.key?(:signed_uri_destination) + end + end + # Describes the Summary view of a Report, which contains aggregated values for # all the groups and preference sets included in this Report. class ReportSummary @@ -7374,6 +7605,26 @@ def update!(**args) end end + # Detailed data related to Total Cost of Ownership (TCO) pricing. + class ReportTotalCostOfOwnershipDetails + include Google::Apis::Core::Hashable + + # Output only. Whether the report has detailed pricing data. + # Corresponds to the JSON property `hasPricingData` + # @return [Boolean] + attr_accessor :has_pricing_data + alias_method :has_pricing_data?, :has_pricing_data + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @has_pricing_data = args[:has_pricing_data] if args.key?(:has_pricing_data) + end + end + # Location of a resource. class ResourceLocation include Google::Apis::Core::Hashable @@ -7468,6 +7719,53 @@ def update!(**args) end end + # A request to run a report export job. + class RunReportExportJobRequest + include Google::Apis::Core::Hashable + + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will guarantee + # that for at least 60 minutes after the first request. For example, consider a + # situation where you make an initial request and the request times out. If you + # make the request again with the same request ID, the server can check if + # original operation with the same request ID was received, and if so, will + # ignore the second request. This prevents clients from accidentally creating + # duplicate commitments. The request ID must be a valid UUID with the exception + # that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + # Corresponds to the JSON property `requestId` + # @return [String] + attr_accessor :request_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @request_id = args[:request_id] if args.key?(:request_id) + end + end + + # Response message for running a report export job. + class RunReportExportJobResponse + include Google::Apis::Core::Hashable + + # Execution status of report export operation. + # Corresponds to the JSON property `reportExportExecution` + # @return [Google::Apis::MigrationcenterV1alpha1::ReportExportExecution] + attr_accessor :report_export_execution + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @report_export_execution = args[:report_export_execution] if args.key?(:report_export_execution) + end + end + # Guest OS running process details. class RunningProcess include Google::Apis::Core::Hashable diff --git a/generated/google-apis-migrationcenter_v1alpha1/lib/google/apis/migrationcenter_v1alpha1/gem_version.rb b/generated/google-apis-migrationcenter_v1alpha1/lib/google/apis/migrationcenter_v1alpha1/gem_version.rb index eed554c00a0..12fd48fa311 100644 --- a/generated/google-apis-migrationcenter_v1alpha1/lib/google/apis/migrationcenter_v1alpha1/gem_version.rb +++ b/generated/google-apis-migrationcenter_v1alpha1/lib/google/apis/migrationcenter_v1alpha1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module MigrationcenterV1alpha1 # Version of the google-apis-migrationcenter_v1alpha1 gem - GEM_VERSION = "0.50.0" + GEM_VERSION = "0.51.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20251023" + REVISION = "20251106" end end end diff --git a/generated/google-apis-migrationcenter_v1alpha1/lib/google/apis/migrationcenter_v1alpha1/representations.rb b/generated/google-apis-migrationcenter_v1alpha1/lib/google/apis/migrationcenter_v1alpha1/representations.rb index b1e3b98ebd2..e596d7734ea 100644 --- a/generated/google-apis-migrationcenter_v1alpha1/lib/google/apis/migrationcenter_v1alpha1/representations.rb +++ b/generated/google-apis-migrationcenter_v1alpha1/lib/google/apis/migrationcenter_v1alpha1/representations.rb @@ -604,6 +604,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ExportReportRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExportReportResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class FileValidationReport class Representation < Google::Apis::Core::JsonRepresentation; end @@ -646,6 +658,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GenerateReportArtifactLinkRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GenericInsight class Representation < Google::Apis::Core::JsonRepresentation; end @@ -868,6 +886,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ListReportExportJobsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListReportsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1162,6 +1186,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ReportArtifactLink + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ReportAssetFramesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1180,6 +1210,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ReportExportExecution + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReportExportExecutionResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReportExportJob + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ReportSummary class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1282,6 +1330,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ReportTotalCostOfOwnershipDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ResourceLocation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1306,6 +1360,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class RunReportExportJobRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RunReportExportJobResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RunningProcess class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2557,6 +2623,20 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class ExportReportRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ExportReportResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :report_artifact_links, as: 'reportArtifactLinks', class: Google::Apis::MigrationcenterV1alpha1::ReportArtifactLink, decorator: Google::Apis::MigrationcenterV1alpha1::ReportArtifactLink::Representation + + end + end + class FileValidationReport # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2620,6 +2700,13 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GenerateReportArtifactLinkRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :artifact_type, as: 'artifactType' + end + end + class GenericInsight # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3015,6 +3102,15 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class ListReportExportJobsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :report_export_jobs, as: 'reportExportJobs', class: Google::Apis::MigrationcenterV1alpha1::ReportExportJob, decorator: Google::Apis::MigrationcenterV1alpha1::ReportExportJob::Representation + + end + end + class ListReportsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3538,11 +3634,22 @@ class Representation < Google::Apis::Core::JsonRepresentation property :state, as: 'state' property :summary, as: 'summary', class: Google::Apis::MigrationcenterV1alpha1::ReportSummary, decorator: Google::Apis::MigrationcenterV1alpha1::ReportSummary::Representation + property :tco_details, as: 'tcoDetails', class: Google::Apis::MigrationcenterV1alpha1::ReportTotalCostOfOwnershipDetails, decorator: Google::Apis::MigrationcenterV1alpha1::ReportTotalCostOfOwnershipDetails::Representation + property :type, as: 'type' property :update_time, as: 'updateTime' end end + class ReportArtifactLink + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :uri, as: 'uri' + property :uri_expiration_time, as: 'uriExpirationTime' + end + end + class ReportAssetFramesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3570,6 +3677,42 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class ReportExportExecution + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + property :execution_id, as: 'executionId' + property :expire_time, as: 'expireTime' + property :progress_percentage, as: 'progressPercentage' + property :result, as: 'result', class: Google::Apis::MigrationcenterV1alpha1::ReportExportExecutionResult, decorator: Google::Apis::MigrationcenterV1alpha1::ReportExportExecutionResult::Representation + + property :start_time, as: 'startTime' + end + end + + class ReportExportExecutionResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :error, as: 'error', class: Google::Apis::MigrationcenterV1alpha1::Status, decorator: Google::Apis::MigrationcenterV1alpha1::Status::Representation + + property :output_files, as: 'outputFiles', class: Google::Apis::MigrationcenterV1alpha1::OutputFileList, decorator: Google::Apis::MigrationcenterV1alpha1::OutputFileList::Representation + + property :signed_uris, as: 'signedUris', class: Google::Apis::MigrationcenterV1alpha1::SignedUris, decorator: Google::Apis::MigrationcenterV1alpha1::SignedUris::Representation + + end + end + + class ReportExportJob + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + collection :recent_executions, as: 'recentExecutions', class: Google::Apis::MigrationcenterV1alpha1::ReportExportExecution, decorator: Google::Apis::MigrationcenterV1alpha1::ReportExportExecution::Representation + + property :signed_uri_destination, as: 'signedUriDestination', class: Google::Apis::MigrationcenterV1alpha1::SignedUriDestination, decorator: Google::Apis::MigrationcenterV1alpha1::SignedUriDestination::Representation + + end + end + class ReportSummary # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3789,6 +3932,13 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class ReportTotalCostOfOwnershipDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :has_pricing_data, as: 'hasPricingData' + end + end + class ResourceLocation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3818,6 +3968,21 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class RunReportExportJobRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :request_id, as: 'requestId' + end + end + + class RunReportExportJobResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :report_export_execution, as: 'reportExportExecution', class: Google::Apis::MigrationcenterV1alpha1::ReportExportExecution, decorator: Google::Apis::MigrationcenterV1alpha1::ReportExportExecution::Representation + + end + end + class RunningProcess # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-migrationcenter_v1alpha1/lib/google/apis/migrationcenter_v1alpha1/service.rb b/generated/google-apis-migrationcenter_v1alpha1/lib/google/apis/migrationcenter_v1alpha1/service.rb index 492a8cc33f8..cba4f258047 100644 --- a/generated/google-apis-migrationcenter_v1alpha1/lib/google/apis/migrationcenter_v1alpha1/service.rb +++ b/generated/google-apis-migrationcenter_v1alpha1/lib/google/apis/migrationcenter_v1alpha1/service.rb @@ -2310,6 +2310,39 @@ def list_project_location_report_configs(parent, filter: nil, order_by: nil, pag execute_or_queue_command(command, &block) end + # Gets the link to the generated artifact of a given type for a Report. + # @param [String] name + # Required. Name of the resource. + # @param [Google::Apis::MigrationcenterV1alpha1::GenerateReportArtifactLinkRequest] generate_report_artifact_link_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MigrationcenterV1alpha1::ReportArtifactLink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MigrationcenterV1alpha1::ReportArtifactLink] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def artifact_project_location_report_config_report_link(name, generate_report_artifact_link_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha1/{+name}:artifactLink', options) + command.request_representation = Google::Apis::MigrationcenterV1alpha1::GenerateReportArtifactLinkRequest::Representation + command.request_object = generate_report_artifact_link_request_object + command.response_representation = Google::Apis::MigrationcenterV1alpha1::ReportArtifactLink::Representation + command.response_class = Google::Apis::MigrationcenterV1alpha1::ReportArtifactLink + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a report. # @param [String] parent # Required. Value for parent. @@ -2404,6 +2437,39 @@ def delete_project_location_report_config_report(name, request_id: nil, fields: execute_or_queue_command(command, &block) end + # Export a Report into a supported format. + # @param [String] name + # Required. Name of the resource. + # @param [Google::Apis::MigrationcenterV1alpha1::ExportReportRequest] export_report_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MigrationcenterV1alpha1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def export_report(name, export_report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha1/{+name}:export', options) + command.request_representation = Google::Apis::MigrationcenterV1alpha1::ExportReportRequest::Representation + command.request_object = export_report_request_object + command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation + command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Gets details of a single Report. # @param [String] name # Required. Name of the resource. @@ -2483,6 +2549,196 @@ def list_project_location_report_config_reports(parent, filter: nil, order_by: n execute_or_queue_command(command, &block) end + # Export a Report into a supported destination. + # @param [String] parent + # Required. The parent resource where this export job will be created. + # @param [Google::Apis::MigrationcenterV1alpha1::ReportExportJob] report_export_job_object + # @param [String] report_export_job_id + # Required. The ID to use for the report export job. + # @param [String] request_id + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will guarantee + # that for at least 60 minutes after the first request. For example, consider a + # situation where you make an initial request and the request times out. If you + # make the request again with the same request ID, the server can check if + # original operation with the same request ID was received, and if so, will + # ignore the second request. This prevents clients from accidentally creating + # duplicate commitments. The request ID must be a valid UUID with the exception + # that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MigrationcenterV1alpha1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_report_config_report_report_export_job(parent, report_export_job_object = nil, report_export_job_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha1/{+parent}/reportExportJobs', options) + command.request_representation = Google::Apis::MigrationcenterV1alpha1::ReportExportJob::Representation + command.request_object = report_export_job_object + command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation + command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation + command.params['parent'] = parent unless parent.nil? + command.query['reportExportJobId'] = report_export_job_id unless report_export_job_id.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes an report export job. + # @param [String] name + # Required. Name of the resource. + # @param [String] request_id + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will guarantee + # that for at least 60 minutes after the first request. For example, consider a + # situation where you make an initial request and the request times out. If you + # make the request again with the same request ID, the server can check if + # original operation with the same request ID was received, and if so, will + # ignore the second request. This prevents clients from accidentally creating + # duplicate commitments. The request ID must be a valid UUID with the exception + # that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MigrationcenterV1alpha1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_report_config_report_report_export_job(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1alpha1/{+name}', options) + command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation + command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation + command.params['name'] = name unless name.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the details of a report export job. + # @param [String] name + # Required. Name of the resource. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MigrationcenterV1alpha1::ReportExportJob] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MigrationcenterV1alpha1::ReportExportJob] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_report_config_report_report_export_job(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+name}', options) + command.response_representation = Google::Apis::MigrationcenterV1alpha1::ReportExportJob::Representation + command.response_class = Google::Apis::MigrationcenterV1alpha1::ReportExportJob + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists all the report export jobs for a given report. + # @param [String] parent + # Required. Parent report owning the export jobs. + # @param [Fixnum] page_size + # Optional. Requested page size. The server may return fewer items than + # requested. If unspecified, the server will pick an appropriate default value. + # @param [String] page_token + # Optional. A token identifying a page of results that the server should return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MigrationcenterV1alpha1::ListReportExportJobsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MigrationcenterV1alpha1::ListReportExportJobsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_report_config_report_report_export_jobs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+parent}/reportExportJobs', options) + command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListReportExportJobsResponse::Representation + command.response_class = Google::Apis::MigrationcenterV1alpha1::ListReportExportJobsResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Runs a report export job. + # @param [String] name + # Required. Name of the resource. + # @param [Google::Apis::MigrationcenterV1alpha1::RunReportExportJobRequest] run_report_export_job_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::MigrationcenterV1alpha1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def run_report_export_job(name, run_report_export_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1alpha1/{+name}:run', options) + command.request_representation = Google::Apis::MigrationcenterV1alpha1::RunReportExportJobRequest::Representation + command.request_object = run_report_export_job_request_object + command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation + command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a new source in a given project and location. # @param [String] parent # Required. Value for parent.