google-cloud-storage_insights-v1 1.0.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/storage_insights/v1/storage_insights/client.rb +969 -171
- data/lib/google/cloud/storage_insights/v1/storage_insights/operations.rb +813 -0
- data/lib/google/cloud/storage_insights/v1/storage_insights/paths.rb +19 -0
- data/lib/google/cloud/storage_insights/v1/storage_insights/rest/client.rb +749 -0
- data/lib/google/cloud/storage_insights/v1/storage_insights/rest/operations.rb +914 -0
- data/lib/google/cloud/storage_insights/v1/storage_insights/rest/service_stub.rb +431 -0
- data/lib/google/cloud/storage_insights/v1/storage_insights/rest.rb +1 -0
- data/lib/google/cloud/storage_insights/v1/storage_insights.rb +1 -0
- data/lib/google/cloud/storage_insights/v1/version.rb +1 -1
- data/lib/google/cloud/storageinsights/v1/storageinsights_pb.rb +25 -1
- data/lib/google/cloud/storageinsights/v1/storageinsights_services_pb.rb +15 -0
- data/proto_docs/google/cloud/storageinsights/v1/storageinsights.rb +493 -1
- data/proto_docs/google/longrunning/operations.rb +173 -0
- metadata +13 -22
@@ -21,7 +21,8 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module StorageInsights
|
23
23
|
module V1
|
24
|
-
#
|
24
|
+
# Request message for
|
25
|
+
# {::Google::Cloud::StorageInsights::V1::StorageInsights::Client#list_report_configs `ListReportConfigs`}
|
25
26
|
# @!attribute [rw] parent
|
26
27
|
# @return [::String]
|
27
28
|
# Required. Parent value for ListReportConfigsRequest
|
@@ -432,6 +433,497 @@ module Google
|
|
432
433
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
433
434
|
end
|
434
435
|
end
|
436
|
+
|
437
|
+
# Identity lets the user provide the type of identity to use, and outputs
|
438
|
+
# the identity string that can be used for IAM policy changes.
|
439
|
+
# @!attribute [r] name
|
440
|
+
# @return [::String]
|
441
|
+
# Output only. Name of the identity.
|
442
|
+
# @!attribute [rw] type
|
443
|
+
# @return [::Google::Cloud::StorageInsights::V1::Identity::IdentityType]
|
444
|
+
# Type of identity to use for the datasetConfig.
|
445
|
+
class Identity
|
446
|
+
include ::Google::Protobuf::MessageExts
|
447
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
448
|
+
|
449
|
+
# Type of service account to use for the dataset configuration.
|
450
|
+
module IdentityType
|
451
|
+
# Default is unspecified and should not be used.
|
452
|
+
IDENTITY_TYPE_UNSPECIFIED = 0
|
453
|
+
|
454
|
+
# Google managed service account per resource.
|
455
|
+
IDENTITY_TYPE_PER_CONFIG = 1
|
456
|
+
|
457
|
+
# Google managed service account per project.
|
458
|
+
IDENTITY_TYPE_PER_PROJECT = 2
|
459
|
+
end
|
460
|
+
end
|
461
|
+
|
462
|
+
# Message describing the dataset configuration properties. For more
|
463
|
+
# information, see [Dataset configuration
|
464
|
+
# properties](https://cloud.google.com/storage/docs/insights/datasets#dataset-config).
|
465
|
+
# @!attribute [rw] name
|
466
|
+
# @return [::String]
|
467
|
+
# Identifier. name of resource
|
468
|
+
# @!attribute [r] create_time
|
469
|
+
# @return [::Google::Protobuf::Timestamp]
|
470
|
+
# Output only. The UTC time at which the dataset configuration was created.
|
471
|
+
# This is auto-populated.
|
472
|
+
# @!attribute [r] update_time
|
473
|
+
# @return [::Google::Protobuf::Timestamp]
|
474
|
+
# Output only. The UTC time at which the dataset configuration was last
|
475
|
+
# updated. This is auto-populated.
|
476
|
+
# @!attribute [rw] labels
|
477
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
478
|
+
# Labels as key value pairs
|
479
|
+
# @!attribute [r] uid
|
480
|
+
# @return [::String]
|
481
|
+
# Output only. System generated unique identifier for the resource.
|
482
|
+
# @!attribute [rw] organization_number
|
483
|
+
# @return [::Integer]
|
484
|
+
# Optional. Organization resource ID that the source projects should belong
|
485
|
+
# to. Projects that do not belong to the provided organization are not
|
486
|
+
# considered when creating the dataset.
|
487
|
+
# @!attribute [rw] source_projects
|
488
|
+
# @return [::Google::Cloud::StorageInsights::V1::DatasetConfig::SourceProjects]
|
489
|
+
# Defines the options for providing source projects for the dataset.
|
490
|
+
#
|
491
|
+
# Note: The following fields are mutually exclusive: `source_projects`, `source_folders`, `organization_scope`, `cloud_storage_object_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
492
|
+
# @!attribute [rw] source_folders
|
493
|
+
# @return [::Google::Cloud::StorageInsights::V1::DatasetConfig::SourceFolders]
|
494
|
+
# Defines the options for providing source folders for the dataset.
|
495
|
+
#
|
496
|
+
# Note: The following fields are mutually exclusive: `source_folders`, `source_projects`, `organization_scope`, `cloud_storage_object_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
497
|
+
# @!attribute [rw] organization_scope
|
498
|
+
# @return [::Boolean]
|
499
|
+
# Defines the options for providing a source organization for the dataset.
|
500
|
+
#
|
501
|
+
# Note: The following fields are mutually exclusive: `organization_scope`, `source_projects`, `source_folders`, `cloud_storage_object_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
502
|
+
# @!attribute [rw] cloud_storage_object_path
|
503
|
+
# @return [::String]
|
504
|
+
# Input only. Cloud Storage object path containing a list of
|
505
|
+
# project or folder numbers to include in the dataset;
|
506
|
+
# it cannot contain a mix of project and folders.
|
507
|
+
#
|
508
|
+
# The object must be a text file where each line has one of the following
|
509
|
+
# entries:
|
510
|
+
#
|
511
|
+
# - Project number, formatted as `projects/{project_number}`, for example,
|
512
|
+
# `projects/1234567890`.
|
513
|
+
# - Folder identifier, formatted as `folders/{folder_number}`, for example,
|
514
|
+
# `folders/9876543210`.
|
515
|
+
# Path must be in the format `gs://{bucket_name}/{object_name}`.
|
516
|
+
#
|
517
|
+
# Note: The following fields are mutually exclusive: `cloud_storage_object_path`, `source_projects`, `source_folders`, `organization_scope`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
518
|
+
# @!attribute [rw] include_cloud_storage_locations
|
519
|
+
# @return [::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageLocations]
|
520
|
+
# Note: The following fields are mutually exclusive: `include_cloud_storage_locations`, `exclude_cloud_storage_locations`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
521
|
+
# @!attribute [rw] exclude_cloud_storage_locations
|
522
|
+
# @return [::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageLocations]
|
523
|
+
# Note: The following fields are mutually exclusive: `exclude_cloud_storage_locations`, `include_cloud_storage_locations`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
524
|
+
# @!attribute [rw] include_cloud_storage_buckets
|
525
|
+
# @return [::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageBuckets]
|
526
|
+
# Note: The following fields are mutually exclusive: `include_cloud_storage_buckets`, `exclude_cloud_storage_buckets`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
527
|
+
# @!attribute [rw] exclude_cloud_storage_buckets
|
528
|
+
# @return [::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageBuckets]
|
529
|
+
# Note: The following fields are mutually exclusive: `exclude_cloud_storage_buckets`, `include_cloud_storage_buckets`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
530
|
+
# @!attribute [rw] include_newly_created_buckets
|
531
|
+
# @return [::Boolean]
|
532
|
+
# If set to `true`, the request includes all the newly created buckets in the
|
533
|
+
# dataset that meet the inclusion and exclusion rules.
|
534
|
+
# @!attribute [rw] skip_verification_and_ingest
|
535
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
536
|
+
# @return [::Boolean]
|
537
|
+
# Optional. If set to `false`, then all the permission checks must be
|
538
|
+
# successful before the system can start ingesting data. This field can only
|
539
|
+
# be updated before the system ingests data for the first time. Any attempt
|
540
|
+
# to modify the field after data ingestion starts results in an error.
|
541
|
+
# @!attribute [rw] retention_period_days
|
542
|
+
# @return [::Integer]
|
543
|
+
# Number of days of history that must be retained.
|
544
|
+
# @!attribute [rw] link
|
545
|
+
# @return [::Google::Cloud::StorageInsights::V1::DatasetConfig::Link]
|
546
|
+
# Details of the linked dataset.
|
547
|
+
# @!attribute [rw] identity
|
548
|
+
# @return [::Google::Cloud::StorageInsights::V1::Identity]
|
549
|
+
# Identity used by this `datasetConfig`.
|
550
|
+
# @!attribute [r] status
|
551
|
+
# @return [::Google::Rpc::Status]
|
552
|
+
# Output only. Status of the `datasetConfig`.
|
553
|
+
# @!attribute [r] dataset_config_state
|
554
|
+
# @return [::Google::Cloud::StorageInsights::V1::DatasetConfig::ConfigState]
|
555
|
+
# Output only. State of the `datasetConfig`.
|
556
|
+
# @!attribute [rw] description
|
557
|
+
# @return [::String]
|
558
|
+
# Optional. A user-provided description for the dataset configuration.
|
559
|
+
#
|
560
|
+
# Maximum length: 256 characters.
|
561
|
+
class DatasetConfig
|
562
|
+
include ::Google::Protobuf::MessageExts
|
563
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
564
|
+
|
565
|
+
# Collection of project numbers
|
566
|
+
# @!attribute [rw] project_numbers
|
567
|
+
# @return [::Array<::Integer>]
|
568
|
+
class SourceProjects
|
569
|
+
include ::Google::Protobuf::MessageExts
|
570
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
571
|
+
end
|
572
|
+
|
573
|
+
# Specifies a set of folders to include in the dataset
|
574
|
+
# @!attribute [rw] folder_numbers
|
575
|
+
# @return [::Array<::Integer>]
|
576
|
+
# Optional. The list of folder numbers to include in the dataset.
|
577
|
+
class SourceFolders
|
578
|
+
include ::Google::Protobuf::MessageExts
|
579
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
580
|
+
end
|
581
|
+
|
582
|
+
# Collection of Cloud Storage locations.
|
583
|
+
# @!attribute [rw] locations
|
584
|
+
# @return [::Array<::String>]
|
585
|
+
class CloudStorageLocations
|
586
|
+
include ::Google::Protobuf::MessageExts
|
587
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
588
|
+
end
|
589
|
+
|
590
|
+
# Collection of Cloud Storage buckets.
|
591
|
+
# @!attribute [rw] cloud_storage_buckets
|
592
|
+
# @return [::Array<::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageBuckets::CloudStorageBucket>]
|
593
|
+
class CloudStorageBuckets
|
594
|
+
include ::Google::Protobuf::MessageExts
|
595
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
596
|
+
|
597
|
+
# Defines the bucket by its name or a regex pattern to match buckets.
|
598
|
+
# @!attribute [rw] bucket_name
|
599
|
+
# @return [::String]
|
600
|
+
# Cloud Storage bucket name.
|
601
|
+
#
|
602
|
+
# Note: The following fields are mutually exclusive: `bucket_name`, `bucket_prefix_regex`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
603
|
+
# @!attribute [rw] bucket_prefix_regex
|
604
|
+
# @return [::String]
|
605
|
+
# A regex pattern for bucket names matching the regex. Regex should
|
606
|
+
# follow the syntax specified in `google/re2` on GitHub.
|
607
|
+
#
|
608
|
+
# Note: The following fields are mutually exclusive: `bucket_prefix_regex`, `bucket_name`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
609
|
+
class CloudStorageBucket
|
610
|
+
include ::Google::Protobuf::MessageExts
|
611
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
612
|
+
end
|
613
|
+
end
|
614
|
+
|
615
|
+
# Defines the details about the linked dataset.
|
616
|
+
# @!attribute [r] dataset
|
617
|
+
# @return [::String]
|
618
|
+
# Output only. Dataset name for linked dataset.
|
619
|
+
# @!attribute [r] linked
|
620
|
+
# @return [::Boolean]
|
621
|
+
# Output only. State of the linked dataset.
|
622
|
+
class Link
|
623
|
+
include ::Google::Protobuf::MessageExts
|
624
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
625
|
+
end
|
626
|
+
|
627
|
+
# Provides a summary of the bucket level error statistics.
|
628
|
+
# @!attribute [rw] validated_count
|
629
|
+
# @return [::Integer]
|
630
|
+
# Optional. Count of successfully validated buckets.
|
631
|
+
# @!attribute [rw] permission_denied_count
|
632
|
+
# @return [::Integer]
|
633
|
+
# Optional. Count of buckets with permission denied errors.
|
634
|
+
# @!attribute [rw] permission_denied_bucket_ids
|
635
|
+
# @return [::Array<::String>]
|
636
|
+
# Optional. Subset of bucket names that have permission denied.
|
637
|
+
# @!attribute [rw] non_management_hub_entitled_count
|
638
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
639
|
+
# @return [::Integer]
|
640
|
+
# Optional. Count of buckets that are not subscribed to Storage
|
641
|
+
# Intelligence.
|
642
|
+
# @!attribute [rw] internal_error_count
|
643
|
+
# @return [::Integer]
|
644
|
+
# Optional. Number of buckets that encountered internal errors during the
|
645
|
+
# validation process. These buckets are automatically retried in subsequent
|
646
|
+
# validation attempts.
|
647
|
+
# @!attribute [rw] non_storage_intelligence_entitled_count
|
648
|
+
# @return [::Integer]
|
649
|
+
# Optional. Count of buckets that are not subscribed to Storage
|
650
|
+
# Intelligence.
|
651
|
+
# @!attribute [rw] non_storage_intelligence_entitled_bucket_ids
|
652
|
+
# @return [::Array<::String>]
|
653
|
+
# Optional. Subset of bucket names that are not subscribed to Storage
|
654
|
+
# Intelligence.
|
655
|
+
class BucketErrors
|
656
|
+
include ::Google::Protobuf::MessageExts
|
657
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
658
|
+
end
|
659
|
+
|
660
|
+
# Provides a summary of the project level error statistics.
|
661
|
+
# @!attribute [rw] validated_count
|
662
|
+
# @return [::Integer]
|
663
|
+
# Optional. Count of successfully validated projects.
|
664
|
+
# @!attribute [rw] outside_org_error_count
|
665
|
+
# @return [::Integer]
|
666
|
+
# Optional. Count of projects which are not in the same organization.
|
667
|
+
# @!attribute [rw] outside_org_project_numbers
|
668
|
+
# @return [::Array<::Integer>]
|
669
|
+
# Optional. Subset of project numbers which are not in the same
|
670
|
+
# organization.
|
671
|
+
# @!attribute [rw] non_management_hub_entitled_error_count
|
672
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
673
|
+
# @return [::Integer]
|
674
|
+
# Optional. Count of projects that are not subscribed to Storage
|
675
|
+
# Intelligence.
|
676
|
+
# @!attribute [rw] non_management_hub_entitled_project_numbers
|
677
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
678
|
+
# @return [::Array<::Integer>]
|
679
|
+
# Optional. Subset of project numbers that are not subscribed to Storage
|
680
|
+
# Intelligence.
|
681
|
+
# @!attribute [rw] non_storage_intelligence_entitled_error_count
|
682
|
+
# @return [::Integer]
|
683
|
+
# Optional. Count of projects that are not subscribed to Storage
|
684
|
+
# Intelligence.
|
685
|
+
# @!attribute [rw] non_storage_intelligence_entitled_project_numbers
|
686
|
+
# @return [::Array<::Integer>]
|
687
|
+
# Optional. Subset of project numbers that are not subscribed to Storage
|
688
|
+
# Intelligence.
|
689
|
+
# @!attribute [rw] internal_error_count
|
690
|
+
# @return [::Integer]
|
691
|
+
# Optional. Number of projects that encountered internal errors during
|
692
|
+
# validation and are automatically retried.
|
693
|
+
# @!attribute [rw] destination_project_org_error
|
694
|
+
# @return [::Boolean]
|
695
|
+
# Optional. Indicates if the destination project resides within the same
|
696
|
+
# organization as the source project.
|
697
|
+
#
|
698
|
+
# Note: The following fields are mutually exclusive: `destination_project_org_error`, `destination_project_check_has_internal_error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
699
|
+
# @!attribute [rw] destination_project_check_has_internal_error
|
700
|
+
# @return [::Boolean]
|
701
|
+
# Optional. Indicates whether the destination project check failed due to
|
702
|
+
# an internal error. If `true`, the system automatically retries the
|
703
|
+
# check.
|
704
|
+
#
|
705
|
+
# Note: The following fields are mutually exclusive: `destination_project_check_has_internal_error`, `destination_project_org_error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
706
|
+
class ProjectErrors
|
707
|
+
include ::Google::Protobuf::MessageExts
|
708
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
709
|
+
end
|
710
|
+
|
711
|
+
# Summary of validation errors that occurred during the verification phase.
|
712
|
+
# @!attribute [rw] bucket_errors
|
713
|
+
# @return [::Google::Cloud::StorageInsights::V1::DatasetConfig::BucketErrors]
|
714
|
+
# Optional. Provides a summary of the bucket level error stats.
|
715
|
+
# @!attribute [rw] project_errors
|
716
|
+
# @return [::Google::Cloud::StorageInsights::V1::DatasetConfig::ProjectErrors]
|
717
|
+
# Optional. Provides a summary of the project level error stats.
|
718
|
+
class ValidationErrorsBeforeIngestion
|
719
|
+
include ::Google::Protobuf::MessageExts
|
720
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
721
|
+
end
|
722
|
+
|
723
|
+
# @!attribute [rw] key
|
724
|
+
# @return [::String]
|
725
|
+
# @!attribute [rw] value
|
726
|
+
# @return [::String]
|
727
|
+
class LabelsEntry
|
728
|
+
include ::Google::Protobuf::MessageExts
|
729
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
730
|
+
end
|
731
|
+
|
732
|
+
# State of the configuration.
|
733
|
+
module ConfigState
|
734
|
+
# Unspecified state.
|
735
|
+
CONFIG_STATE_UNSPECIFIED = 0
|
736
|
+
|
737
|
+
# Active configuration indicates that the configuration is
|
738
|
+
# actively ingesting data.
|
739
|
+
CONFIG_STATE_ACTIVE = 1
|
740
|
+
|
741
|
+
# In this state, the configuration is being verified for various
|
742
|
+
# permissions.
|
743
|
+
CONFIG_STATE_VERIFICATION_IN_PROGRESS = 2
|
744
|
+
|
745
|
+
# Configuration is created and further processing needs to happen.
|
746
|
+
CONFIG_STATE_CREATED = 3
|
747
|
+
|
748
|
+
# Configuration is under processing
|
749
|
+
CONFIG_STATE_PROCESSING = 4
|
750
|
+
end
|
751
|
+
end
|
752
|
+
|
753
|
+
# Request message for
|
754
|
+
# {::Google::Cloud::StorageInsights::V1::StorageInsights::Client#list_dataset_configs `ListDatasetConfigs`}
|
755
|
+
# @!attribute [rw] parent
|
756
|
+
# @return [::String]
|
757
|
+
# Required. Parent value for ListDatasetConfigsRequest
|
758
|
+
# @!attribute [rw] page_size
|
759
|
+
# @return [::Integer]
|
760
|
+
# Requested page size. Server might return fewer items than requested.
|
761
|
+
# If unspecified, server picks an appropriate default.
|
762
|
+
# @!attribute [rw] page_token
|
763
|
+
# @return [::String]
|
764
|
+
# A token identifying a page of results the server should return.
|
765
|
+
# @!attribute [rw] filter
|
766
|
+
# @return [::String]
|
767
|
+
# Filtering results
|
768
|
+
# @!attribute [rw] order_by
|
769
|
+
# @return [::String]
|
770
|
+
# Hint for how to order the results
|
771
|
+
class ListDatasetConfigsRequest
|
772
|
+
include ::Google::Protobuf::MessageExts
|
773
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
774
|
+
end
|
775
|
+
|
776
|
+
# Response message for
|
777
|
+
# {::Google::Cloud::StorageInsights::V1::StorageInsights::Client#list_dataset_configs `ListDatasetConfigs`}
|
778
|
+
# @!attribute [rw] dataset_configs
|
779
|
+
# @return [::Array<::Google::Cloud::StorageInsights::V1::DatasetConfig>]
|
780
|
+
# The list of `DatasetConfigs`
|
781
|
+
# @!attribute [rw] next_page_token
|
782
|
+
# @return [::String]
|
783
|
+
# A token identifying a page of results the server should return.
|
784
|
+
# @!attribute [rw] unreachable
|
785
|
+
# @return [::Array<::String>]
|
786
|
+
# Locations that could not be reached.
|
787
|
+
class ListDatasetConfigsResponse
|
788
|
+
include ::Google::Protobuf::MessageExts
|
789
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
790
|
+
end
|
791
|
+
|
792
|
+
# Request message for
|
793
|
+
# {::Google::Cloud::StorageInsights::V1::StorageInsights::Client#get_dataset_config `GetDatasetConfig`}
|
794
|
+
# @!attribute [rw] name
|
795
|
+
# @return [::String]
|
796
|
+
# Required. Name of the resource
|
797
|
+
class GetDatasetConfigRequest
|
798
|
+
include ::Google::Protobuf::MessageExts
|
799
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
800
|
+
end
|
801
|
+
|
802
|
+
# Request message for
|
803
|
+
# {::Google::Cloud::StorageInsights::V1::StorageInsights::Client#create_dataset_config `CreateDatasetConfig`}
|
804
|
+
# @!attribute [rw] parent
|
805
|
+
# @return [::String]
|
806
|
+
# Required. Value for parent.
|
807
|
+
# @!attribute [rw] dataset_config_id
|
808
|
+
# @return [::String]
|
809
|
+
# Required. ID of the requesting object.
|
810
|
+
# If auto-generating ID is enabled on the server-side, remove this field and
|
811
|
+
# `dataset_config_id` from the method_signature of Create RPC
|
812
|
+
# Note: The value should not contain any hyphens.
|
813
|
+
# @!attribute [rw] dataset_config
|
814
|
+
# @return [::Google::Cloud::StorageInsights::V1::DatasetConfig]
|
815
|
+
# Required. The resource being created
|
816
|
+
# @!attribute [rw] request_id
|
817
|
+
# @return [::String]
|
818
|
+
# Optional. A unique identifier for your request.
|
819
|
+
# Specify the request ID if you need to retry the request.
|
820
|
+
# If you retry the request with the same ID within 60 minutes, the server
|
821
|
+
# ignores the request if it has already completed the original request.
|
822
|
+
#
|
823
|
+
# For example, if your initial request times out and you retry the request
|
824
|
+
# using the same request ID, the server recognizes the original request and
|
825
|
+
# does not process the new request.
|
826
|
+
#
|
827
|
+
# The request ID must be a valid UUID and cannot be a zero UUID
|
828
|
+
# (00000000-0000-0000-0000-000000000000).
|
829
|
+
class CreateDatasetConfigRequest
|
830
|
+
include ::Google::Protobuf::MessageExts
|
831
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
832
|
+
end
|
833
|
+
|
834
|
+
# Request message for
|
835
|
+
# {::Google::Cloud::StorageInsights::V1::StorageInsights::Client#update_dataset_config `UpdateDatasetConfig`}
|
836
|
+
# @!attribute [rw] update_mask
|
837
|
+
# @return [::Google::Protobuf::FieldMask]
|
838
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
839
|
+
# `DatasetConfig` resource by the update.
|
840
|
+
# The fields specified in the `update_mask` are relative to the resource, not
|
841
|
+
# the full request. A field is overwritten if it is in the mask. If the
|
842
|
+
# user does not provide a mask then it returns an "Invalid Argument" error.
|
843
|
+
# @!attribute [rw] dataset_config
|
844
|
+
# @return [::Google::Cloud::StorageInsights::V1::DatasetConfig]
|
845
|
+
# Required. The resource being updated
|
846
|
+
# @!attribute [rw] request_id
|
847
|
+
# @return [::String]
|
848
|
+
# Optional. A unique identifier for your request.
|
849
|
+
# Specify the request ID if you need to retry the request.
|
850
|
+
# If you retry the request with the same ID within 60 minutes, the server
|
851
|
+
# ignores the request if it has already completed the original request.
|
852
|
+
#
|
853
|
+
# For example, if your initial request times out and you retry the request
|
854
|
+
# using the same request ID, the server recognizes the original request and
|
855
|
+
# does not process the new request.
|
856
|
+
#
|
857
|
+
# The request ID must be a valid UUID and cannot be a zero UUID
|
858
|
+
# (00000000-0000-0000-0000-000000000000).
|
859
|
+
class UpdateDatasetConfigRequest
|
860
|
+
include ::Google::Protobuf::MessageExts
|
861
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
862
|
+
end
|
863
|
+
|
864
|
+
# Request message for
|
865
|
+
# {::Google::Cloud::StorageInsights::V1::StorageInsights::Client#delete_dataset_config `DeleteDatasetConfig`}
|
866
|
+
# @!attribute [rw] name
|
867
|
+
# @return [::String]
|
868
|
+
# Required. Name of the resource
|
869
|
+
# @!attribute [rw] request_id
|
870
|
+
# @return [::String]
|
871
|
+
# Optional. A unique identifier for your request.
|
872
|
+
# Specify the request ID if you need to retry the request.
|
873
|
+
# If you retry the request with the same ID within 60 minutes, the server
|
874
|
+
# ignores the request if it has already completed the original request.
|
875
|
+
#
|
876
|
+
# For example, if your initial request times out and you retry the request
|
877
|
+
# using the same request ID, the server recognizes the original request and
|
878
|
+
# does not process the new request.
|
879
|
+
#
|
880
|
+
# The request ID must be a valid UUID and cannot be a zero UUID
|
881
|
+
# (00000000-0000-0000-0000-000000000000).
|
882
|
+
class DeleteDatasetConfigRequest
|
883
|
+
include ::Google::Protobuf::MessageExts
|
884
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
885
|
+
end
|
886
|
+
|
887
|
+
# Request message for
|
888
|
+
# {::Google::Cloud::StorageInsights::V1::StorageInsights::Client#link_dataset `LinkDataset`}
|
889
|
+
# @!attribute [rw] name
|
890
|
+
# @return [::String]
|
891
|
+
# Required. Name of the resource
|
892
|
+
class LinkDatasetRequest
|
893
|
+
include ::Google::Protobuf::MessageExts
|
894
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
895
|
+
end
|
896
|
+
|
897
|
+
# Response message for
|
898
|
+
# {::Google::Cloud::StorageInsights::V1::StorageInsights::Client#link_dataset `LinkDataset`}
|
899
|
+
class LinkDatasetResponse
|
900
|
+
include ::Google::Protobuf::MessageExts
|
901
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
902
|
+
end
|
903
|
+
|
904
|
+
# Request message for
|
905
|
+
# {::Google::Cloud::StorageInsights::V1::StorageInsights::Client#unlink_dataset `UnlinkDataset`}
|
906
|
+
# @!attribute [rw] name
|
907
|
+
# @return [::String]
|
908
|
+
# Required. Name of the resource
|
909
|
+
class UnlinkDatasetRequest
|
910
|
+
include ::Google::Protobuf::MessageExts
|
911
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
912
|
+
end
|
913
|
+
|
914
|
+
# Metadata that helps discover which resources are available in a location.
|
915
|
+
# @!attribute [rw] report_config_available
|
916
|
+
# @return [::Boolean]
|
917
|
+
# If true, `storageinsights.googleapis.com/ReportConfig` resource is
|
918
|
+
# available at the location.
|
919
|
+
# @!attribute [rw] dataset_config_available
|
920
|
+
# @return [::Boolean]
|
921
|
+
# If true, `storageinsights.googleapis.com/DatasetConfig` resource is
|
922
|
+
# available at the location.
|
923
|
+
class LocationMetadata
|
924
|
+
include ::Google::Protobuf::MessageExts
|
925
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
926
|
+
end
|
435
927
|
end
|
436
928
|
end
|
437
929
|
end
|
@@ -0,0 +1,173 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Longrunning
|
22
|
+
# This resource represents a long-running operation that is the result of a
|
23
|
+
# network API call.
|
24
|
+
# @!attribute [rw] name
|
25
|
+
# @return [::String]
|
26
|
+
# The server-assigned name, which is only unique within the same service that
|
27
|
+
# originally returns it. If you use the default HTTP mapping, the
|
28
|
+
# `name` should be a resource name ending with `operations/{unique_id}`.
|
29
|
+
# @!attribute [rw] metadata
|
30
|
+
# @return [::Google::Protobuf::Any]
|
31
|
+
# Service-specific metadata associated with the operation. It typically
|
32
|
+
# contains progress information and common metadata such as create time.
|
33
|
+
# Some services might not provide such metadata. Any method that returns a
|
34
|
+
# long-running operation should document the metadata type, if any.
|
35
|
+
# @!attribute [rw] done
|
36
|
+
# @return [::Boolean]
|
37
|
+
# If the value is `false`, it means the operation is still in progress.
|
38
|
+
# If `true`, the operation is completed, and either `error` or `response` is
|
39
|
+
# available.
|
40
|
+
# @!attribute [rw] error
|
41
|
+
# @return [::Google::Rpc::Status]
|
42
|
+
# The error result of the operation in case of failure or cancellation.
|
43
|
+
#
|
44
|
+
# Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
45
|
+
# @!attribute [rw] response
|
46
|
+
# @return [::Google::Protobuf::Any]
|
47
|
+
# The normal, successful response of the operation. If the original
|
48
|
+
# method returns no data on success, such as `Delete`, the response is
|
49
|
+
# `google.protobuf.Empty`. If the original method is standard
|
50
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
51
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
52
|
+
# is the original method name. For example, if the original method name
|
53
|
+
# is `TakeSnapshot()`, the inferred response type is
|
54
|
+
# `TakeSnapshotResponse`.
|
55
|
+
#
|
56
|
+
# Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
57
|
+
class Operation
|
58
|
+
include ::Google::Protobuf::MessageExts
|
59
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
60
|
+
end
|
61
|
+
|
62
|
+
# The request message for
|
63
|
+
# Operations.GetOperation.
|
64
|
+
# @!attribute [rw] name
|
65
|
+
# @return [::String]
|
66
|
+
# The name of the operation resource.
|
67
|
+
class GetOperationRequest
|
68
|
+
include ::Google::Protobuf::MessageExts
|
69
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
70
|
+
end
|
71
|
+
|
72
|
+
# The request message for
|
73
|
+
# Operations.ListOperations.
|
74
|
+
# @!attribute [rw] name
|
75
|
+
# @return [::String]
|
76
|
+
# The name of the operation's parent resource.
|
77
|
+
# @!attribute [rw] filter
|
78
|
+
# @return [::String]
|
79
|
+
# The standard list filter.
|
80
|
+
# @!attribute [rw] page_size
|
81
|
+
# @return [::Integer]
|
82
|
+
# The standard list page size.
|
83
|
+
# @!attribute [rw] page_token
|
84
|
+
# @return [::String]
|
85
|
+
# The standard list page token.
|
86
|
+
class ListOperationsRequest
|
87
|
+
include ::Google::Protobuf::MessageExts
|
88
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
89
|
+
end
|
90
|
+
|
91
|
+
# The response message for
|
92
|
+
# Operations.ListOperations.
|
93
|
+
# @!attribute [rw] operations
|
94
|
+
# @return [::Array<::Google::Longrunning::Operation>]
|
95
|
+
# A list of operations that matches the specified filter in the request.
|
96
|
+
# @!attribute [rw] next_page_token
|
97
|
+
# @return [::String]
|
98
|
+
# The standard List next-page token.
|
99
|
+
class ListOperationsResponse
|
100
|
+
include ::Google::Protobuf::MessageExts
|
101
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
102
|
+
end
|
103
|
+
|
104
|
+
# The request message for
|
105
|
+
# Operations.CancelOperation.
|
106
|
+
# @!attribute [rw] name
|
107
|
+
# @return [::String]
|
108
|
+
# The name of the operation resource to be cancelled.
|
109
|
+
class CancelOperationRequest
|
110
|
+
include ::Google::Protobuf::MessageExts
|
111
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
112
|
+
end
|
113
|
+
|
114
|
+
# The request message for
|
115
|
+
# Operations.DeleteOperation.
|
116
|
+
# @!attribute [rw] name
|
117
|
+
# @return [::String]
|
118
|
+
# The name of the operation resource to be deleted.
|
119
|
+
class DeleteOperationRequest
|
120
|
+
include ::Google::Protobuf::MessageExts
|
121
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
122
|
+
end
|
123
|
+
|
124
|
+
# The request message for
|
125
|
+
# Operations.WaitOperation.
|
126
|
+
# @!attribute [rw] name
|
127
|
+
# @return [::String]
|
128
|
+
# The name of the operation resource to wait on.
|
129
|
+
# @!attribute [rw] timeout
|
130
|
+
# @return [::Google::Protobuf::Duration]
|
131
|
+
# The maximum duration to wait before timing out. If left blank, the wait
|
132
|
+
# will be at most the time permitted by the underlying HTTP/RPC protocol.
|
133
|
+
# If RPC context deadline is also specified, the shorter one will be used.
|
134
|
+
class WaitOperationRequest
|
135
|
+
include ::Google::Protobuf::MessageExts
|
136
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
137
|
+
end
|
138
|
+
|
139
|
+
# A message representing the message types used by a long-running operation.
|
140
|
+
#
|
141
|
+
# Example:
|
142
|
+
#
|
143
|
+
# rpc Export(ExportRequest) returns (google.longrunning.Operation) {
|
144
|
+
# option (google.longrunning.operation_info) = {
|
145
|
+
# response_type: "ExportResponse"
|
146
|
+
# metadata_type: "ExportMetadata"
|
147
|
+
# };
|
148
|
+
# }
|
149
|
+
# @!attribute [rw] response_type
|
150
|
+
# @return [::String]
|
151
|
+
# Required. The message name of the primary return type for this
|
152
|
+
# long-running operation.
|
153
|
+
# This type will be used to deserialize the LRO's response.
|
154
|
+
#
|
155
|
+
# If the response is in a different package from the rpc, a fully-qualified
|
156
|
+
# message name must be used (e.g. `google.protobuf.Struct`).
|
157
|
+
#
|
158
|
+
# Note: Altering this value constitutes a breaking change.
|
159
|
+
# @!attribute [rw] metadata_type
|
160
|
+
# @return [::String]
|
161
|
+
# Required. The message name of the metadata type for this long-running
|
162
|
+
# operation.
|
163
|
+
#
|
164
|
+
# If the response is in a different package from the rpc, a fully-qualified
|
165
|
+
# message name must be used (e.g. `google.protobuf.Struct`).
|
166
|
+
#
|
167
|
+
# Note: Altering this value constitutes a breaking change.
|
168
|
+
class OperationInfo
|
169
|
+
include ::Google::Protobuf::MessageExts
|
170
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|