google-apis-metastore_v1 0.20.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b39957fdda180ec0b5ae8bd400851a1c4a456031699579df9d39936e61acaf9
4
- data.tar.gz: 4d6762458c5fb20b68a8e1eb3aee4ca4dabae72de8f2a170832a8d871825a31b
3
+ metadata.gz: 7adf495e14e87df3677e31d124ba44d3b02ed8674b0f7fd6b77cc9b9b494f65f
4
+ data.tar.gz: cc0a6220a8c7fe9998fe90790a7c5b25261cf054387e98567b811b326c8e8206
5
5
  SHA512:
6
- metadata.gz: f6da8bf24b1df7c06b58620d8b74d55c1a08be6f56c8952023a1e200448bd8a500dad1a200028d539a521c6925726700fc5496abc480858f7c2ffeea04f02a76
7
- data.tar.gz: ac73b527569b20607d10b20d40a8d3b16d1564b26dc0ed28ba65b66183772596ddd80af78126b5cd718b4c758e28c499398e2e16bf10d255a6208bb14000a399
6
+ metadata.gz: b40b244e970cd9384b10f188354292c2da290abcf22db4931de16e1b4317a3576653945636988531d629d0c513a0d9b97846904f3b1b9e2f80101520c398d07c
7
+ data.tar.gz: '08a9adbe7fb671b5fb9d3432a9461fe8f951b767e09d2d36c490f135a11a3fad54fbe8b50e7ee5c4240daf5e2a46aec7f249d605d057e8d784628f5867b77c41'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-metastore_v1
2
2
 
3
+ ### v0.22.0 (2024-03-03)
4
+
5
+ * Regenerated from discovery document revision 20240228
6
+
7
+ ### v0.21.0 (2024-02-24)
8
+
9
+ * Regenerated from discovery document revision 20240218
10
+ * Regenerated using generator version 0.14.0
11
+
3
12
  ### v0.20.0 (2024-01-28)
4
13
 
5
14
  * Regenerated from discovery document revision 20240123
data/OVERVIEW.md CHANGED
@@ -83,9 +83,9 @@ The [product documentation](https://cloud.google.com/dataproc-metastore/docs) ma
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.5+.
86
+ This library is supported on Ruby 2.7+.
87
87
 
88
- Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
90
90
  ## License
91
91
 
@@ -855,6 +855,44 @@ module Google
855
855
  end
856
856
  end
857
857
 
858
+ # The details of the latest scheduled backup.
859
+ class LatestBackup
860
+ include Google::Apis::Core::Hashable
861
+
862
+ # Output only. The ID of an in-progress scheduled backup. Empty if no backup is
863
+ # in progress.
864
+ # Corresponds to the JSON property `backupId`
865
+ # @return [String]
866
+ attr_accessor :backup_id
867
+
868
+ # Output only. The duration of the backup completion.
869
+ # Corresponds to the JSON property `duration`
870
+ # @return [String]
871
+ attr_accessor :duration
872
+
873
+ # Output only. The time when the backup was started.
874
+ # Corresponds to the JSON property `startTime`
875
+ # @return [String]
876
+ attr_accessor :start_time
877
+
878
+ # Output only. The current state of the backup.
879
+ # Corresponds to the JSON property `state`
880
+ # @return [String]
881
+ attr_accessor :state
882
+
883
+ def initialize(**args)
884
+ update!(**args)
885
+ end
886
+
887
+ # Update properties of this object
888
+ def update!(**args)
889
+ @backup_id = args[:backup_id] if args.key?(:backup_id)
890
+ @duration = args[:duration] if args.key?(:duration)
891
+ @start_time = args[:start_time] if args.key?(:start_time)
892
+ @state = args[:state] if args.key?(:state)
893
+ end
894
+ end
895
+
858
896
  # Response message for DataprocMetastore.ListBackups.
859
897
  class ListBackupsResponse
860
898
  include Google::Apis::Core::Hashable
@@ -1634,6 +1672,12 @@ module Google
1634
1672
  # @return [String]
1635
1673
  attr_accessor :backup
1636
1674
 
1675
+ # Optional. A Cloud Storage URI specifying where the backup artifacts are stored,
1676
+ # in the format gs:///.
1677
+ # Corresponds to the JSON property `backupLocation`
1678
+ # @return [String]
1679
+ attr_accessor :backup_location
1680
+
1637
1681
  # Output only. The restore details containing the revision of the service to be
1638
1682
  # restored to, in format of JSON.
1639
1683
  # Corresponds to the JSON property `details`
@@ -1667,6 +1711,7 @@ module Google
1667
1711
  # Update properties of this object
1668
1712
  def update!(**args)
1669
1713
  @backup = args[:backup] if args.key?(:backup)
1714
+ @backup_location = args[:backup_location] if args.key?(:backup_location)
1670
1715
  @details = args[:details] if args.key?(:details)
1671
1716
  @end_time = args[:end_time] if args.key?(:end_time)
1672
1717
  @start_time = args[:start_time] if args.key?(:start_time)
@@ -1687,6 +1732,14 @@ module Google
1687
1732
  # @return [String]
1688
1733
  attr_accessor :backup
1689
1734
 
1735
+ # Optional. A Cloud Storage URI specifying the location of the backup artifacts,
1736
+ # namely - backup avro files under "avro/", backup_metastore.json and service.
1737
+ # json, in the following form:gs://. Mutually exclusive with backup, and exactly
1738
+ # one of the two must be set.
1739
+ # Corresponds to the JSON property `backupLocation`
1740
+ # @return [String]
1741
+ attr_accessor :backup_location
1742
+
1690
1743
  # Optional. A request ID. Specify a unique request ID to allow the server to
1691
1744
  # ignore the request if it has completed. The server will ignore subsequent
1692
1745
  # requests that provide a duplicate request ID for at least 60 minutes after the
@@ -1711,6 +1764,7 @@ module Google
1711
1764
  # Update properties of this object
1712
1765
  def update!(**args)
1713
1766
  @backup = args[:backup] if args.key?(:backup)
1767
+ @backup_location = args[:backup_location] if args.key?(:backup_location)
1714
1768
  @request_id = args[:request_id] if args.key?(:request_id)
1715
1769
  @restore_type = args[:restore_type] if args.key?(:restore_type)
1716
1770
  end
@@ -1743,6 +1797,63 @@ module Google
1743
1797
  end
1744
1798
  end
1745
1799
 
1800
+ # This specifies the configuration of scheduled backup.
1801
+ class ScheduledBackup
1802
+ include Google::Apis::Core::Hashable
1803
+
1804
+ # Optional. A Cloud Storage URI of a folder, in the format gs:///. A sub-folder
1805
+ # containing backup files will be stored below it.
1806
+ # Corresponds to the JSON property `backupLocation`
1807
+ # @return [String]
1808
+ attr_accessor :backup_location
1809
+
1810
+ # Optional. The scheduled interval in Cron format, see https://en.wikipedia.org/
1811
+ # wiki/Cron The default is empty: scheduled backup is not enabled. Must be
1812
+ # specified to enable scheduled backups.
1813
+ # Corresponds to the JSON property `cronSchedule`
1814
+ # @return [String]
1815
+ attr_accessor :cron_schedule
1816
+
1817
+ # Optional. Defines whether the scheduled backup is enabled. The default value
1818
+ # is false.
1819
+ # Corresponds to the JSON property `enabled`
1820
+ # @return [Boolean]
1821
+ attr_accessor :enabled
1822
+ alias_method :enabled?, :enabled
1823
+
1824
+ # The details of the latest scheduled backup.
1825
+ # Corresponds to the JSON property `latestBackup`
1826
+ # @return [Google::Apis::MetastoreV1::LatestBackup]
1827
+ attr_accessor :latest_backup
1828
+
1829
+ # Output only. The time when the next backups execution is scheduled to start.
1830
+ # Corresponds to the JSON property `nextScheduledTime`
1831
+ # @return [String]
1832
+ attr_accessor :next_scheduled_time
1833
+
1834
+ # Optional. Specifies the time zone to be used when interpreting cron_schedule.
1835
+ # Must be a time zone name from the time zone database (https://en.wikipedia.org/
1836
+ # wiki/List_of_tz_database_time_zones), e.g. America/Los_Angeles or Africa/
1837
+ # Abidjan. If left unspecified, the default is UTC.
1838
+ # Corresponds to the JSON property `timeZone`
1839
+ # @return [String]
1840
+ attr_accessor :time_zone
1841
+
1842
+ def initialize(**args)
1843
+ update!(**args)
1844
+ end
1845
+
1846
+ # Update properties of this object
1847
+ def update!(**args)
1848
+ @backup_location = args[:backup_location] if args.key?(:backup_location)
1849
+ @cron_schedule = args[:cron_schedule] if args.key?(:cron_schedule)
1850
+ @enabled = args[:enabled] if args.key?(:enabled)
1851
+ @latest_backup = args[:latest_backup] if args.key?(:latest_backup)
1852
+ @next_scheduled_time = args[:next_scheduled_time] if args.key?(:next_scheduled_time)
1853
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
1854
+ end
1855
+ end
1856
+
1746
1857
  # A securely stored value.
1747
1858
  class Secret
1748
1859
  include Google::Apis::Core::Hashable
@@ -1856,6 +1967,11 @@ module Google
1856
1967
  # @return [Google::Apis::MetastoreV1::ScalingConfig]
1857
1968
  attr_accessor :scaling_config
1858
1969
 
1970
+ # This specifies the configuration of scheduled backup.
1971
+ # Corresponds to the JSON property `scheduledBackup`
1972
+ # @return [Google::Apis::MetastoreV1::ScheduledBackup]
1973
+ attr_accessor :scheduled_backup
1974
+
1859
1975
  # Output only. The current state of the metastore service.
1860
1976
  # Corresponds to the JSON property `state`
1861
1977
  # @return [String]
@@ -1909,6 +2025,7 @@ module Google
1909
2025
  @port = args[:port] if args.key?(:port)
1910
2026
  @release_channel = args[:release_channel] if args.key?(:release_channel)
1911
2027
  @scaling_config = args[:scaling_config] if args.key?(:scaling_config)
2028
+ @scheduled_backup = args[:scheduled_backup] if args.key?(:scheduled_backup)
1912
2029
  @state = args[:state] if args.key?(:state)
1913
2030
  @state_message = args[:state_message] if args.key?(:state_message)
1914
2031
  @telemetry_config = args[:telemetry_config] if args.key?(:telemetry_config)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MetastoreV1
18
18
  # Version of the google-apis-metastore_v1 gem
19
- GEM_VERSION = "0.20.0"
19
+ GEM_VERSION = "0.22.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.13.1"
22
+ GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240123"
25
+ REVISION = "20240228"
26
26
  end
27
27
  end
28
28
  end
@@ -154,6 +154,12 @@ module Google
154
154
  include Google::Apis::Core::JsonObjectSupport
155
155
  end
156
156
 
157
+ class LatestBackup
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
157
163
  class ListBackupsResponse
158
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
165
 
@@ -304,6 +310,12 @@ module Google
304
310
  include Google::Apis::Core::JsonObjectSupport
305
311
  end
306
312
 
313
+ class ScheduledBackup
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+
316
+ include Google::Apis::Core::JsonObjectSupport
317
+ end
318
+
307
319
  class Secret
308
320
  class Representation < Google::Apis::Core::JsonRepresentation; end
309
321
 
@@ -547,6 +559,16 @@ module Google
547
559
  end
548
560
  end
549
561
 
562
+ class LatestBackup
563
+ # @private
564
+ class Representation < Google::Apis::Core::JsonRepresentation
565
+ property :backup_id, as: 'backupId'
566
+ property :duration, as: 'duration'
567
+ property :start_time, as: 'startTime'
568
+ property :state, as: 'state'
569
+ end
570
+ end
571
+
550
572
  class ListBackupsResponse
551
573
  # @private
552
574
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -762,6 +784,7 @@ module Google
762
784
  # @private
763
785
  class Representation < Google::Apis::Core::JsonRepresentation
764
786
  property :backup, as: 'backup'
787
+ property :backup_location, as: 'backupLocation'
765
788
  property :details, as: 'details'
766
789
  property :end_time, as: 'endTime'
767
790
  property :start_time, as: 'startTime'
@@ -774,6 +797,7 @@ module Google
774
797
  # @private
775
798
  class Representation < Google::Apis::Core::JsonRepresentation
776
799
  property :backup, as: 'backup'
800
+ property :backup_location, as: 'backupLocation'
777
801
  property :request_id, as: 'requestId'
778
802
  property :restore_type, as: 'restoreType'
779
803
  end
@@ -787,6 +811,19 @@ module Google
787
811
  end
788
812
  end
789
813
 
814
+ class ScheduledBackup
815
+ # @private
816
+ class Representation < Google::Apis::Core::JsonRepresentation
817
+ property :backup_location, as: 'backupLocation'
818
+ property :cron_schedule, as: 'cronSchedule'
819
+ property :enabled, as: 'enabled'
820
+ property :latest_backup, as: 'latestBackup', class: Google::Apis::MetastoreV1::LatestBackup, decorator: Google::Apis::MetastoreV1::LatestBackup::Representation
821
+
822
+ property :next_scheduled_time, as: 'nextScheduledTime'
823
+ property :time_zone, as: 'timeZone'
824
+ end
825
+ end
826
+
790
827
  class Secret
791
828
  # @private
792
829
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -820,6 +857,8 @@ module Google
820
857
  property :release_channel, as: 'releaseChannel'
821
858
  property :scaling_config, as: 'scalingConfig', class: Google::Apis::MetastoreV1::ScalingConfig, decorator: Google::Apis::MetastoreV1::ScalingConfig::Representation
822
859
 
860
+ property :scheduled_backup, as: 'scheduledBackup', class: Google::Apis::MetastoreV1::ScheduledBackup, decorator: Google::Apis::MetastoreV1::ScheduledBackup::Representation
861
+
823
862
  property :state, as: 'state'
824
863
  property :state_message, as: 'stateMessage'
825
864
  property :telemetry_config, as: 'telemetryConfig', class: Google::Apis::MetastoreV1::TelemetryConfig, decorator: Google::Apis::MetastoreV1::TelemetryConfig::Representation
@@ -1622,6 +1622,48 @@ module Google
1622
1622
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1623
1623
  execute_or_queue_command(command, &block)
1624
1624
  end
1625
+
1626
+ # Deletes a single migration execution.
1627
+ # @param [String] name
1628
+ # Required. The relative resource name of the migrationExecution to delete, in
1629
+ # the following form:projects/`project_number`/locations/`location_id`/services/`
1630
+ # service_id`/migrationExecutions/`migration_execution_id`.
1631
+ # @param [String] request_id
1632
+ # Optional. A request ID. Specify a unique request ID to allow the server to
1633
+ # ignore the request if it has completed. The server will ignore subsequent
1634
+ # requests that provide a duplicate request ID for at least 60 minutes after the
1635
+ # first request.For example, if an initial request times out, followed by
1636
+ # another request with the same request ID, the server ignores the second
1637
+ # request to prevent the creation of duplicate commitments.The request ID must
1638
+ # be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
1639
+ # Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1640
+ # @param [String] fields
1641
+ # Selector specifying which fields to include in a partial response.
1642
+ # @param [String] quota_user
1643
+ # Available to use for quota purposes for server-side applications. Can be any
1644
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1645
+ # @param [Google::Apis::RequestOptions] options
1646
+ # Request-specific options
1647
+ #
1648
+ # @yield [result, err] Result & error if block supplied
1649
+ # @yieldparam result [Google::Apis::MetastoreV1::Operation] parsed result object
1650
+ # @yieldparam err [StandardError] error object if request failed
1651
+ #
1652
+ # @return [Google::Apis::MetastoreV1::Operation]
1653
+ #
1654
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1655
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1656
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1657
+ def delete_project_location_service_migration_execution(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1658
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1659
+ command.response_representation = Google::Apis::MetastoreV1::Operation::Representation
1660
+ command.response_class = Google::Apis::MetastoreV1::Operation
1661
+ command.params['name'] = name unless name.nil?
1662
+ command.query['requestId'] = request_id unless request_id.nil?
1663
+ command.query['fields'] = fields unless fields.nil?
1664
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1665
+ execute_or_queue_command(command, &block)
1666
+ end
1625
1667
 
1626
1668
  protected
1627
1669
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-metastore_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-28 00:00:00.000000000 Z
11
+ date: 2024-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.12.0
19
+ version: 0.14.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.12.0
29
+ version: 0.14.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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-metastore_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1/v0.20.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-metastore_v1/v0.22.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-metastore_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -68,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: '2.5'
71
+ version: '2.7'
72
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.3
78
+ rubygems_version: 3.5.6
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Dataproc Metastore API V1