google-apis-managedkafka_v1 0.7.0 → 0.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d8942832a9ae0d021f2e0b0f06c997a2f47ec7a91479f14560f7f74a14bba24
4
- data.tar.gz: c830ce4a6d3d666a6a38e430d5711c6449aa3985c01ca8e5a7fa28d1b54a81f6
3
+ metadata.gz: 70bde8d183b73ca68fac46288f29f0e2db678737e1025fc6de6a593869f532e3
4
+ data.tar.gz: 25c5c1d19e5bd9eef674dc2a14c3e90ba9b63d2413bccf141764dbca7dd1a3a1
5
5
  SHA512:
6
- metadata.gz: 5e30dfe3ea4294e5dbd13c56b555b443690f394a769949625c63fa1d4eaebc3f0f63e45086bfd9f1b906b9d1fcd3079cb71fcef042bd21a75fd993e580acf288
7
- data.tar.gz: a40006c67c22ad73b3e82c2ccf9fce82f3b7c0439718e50ed438fec3258ecf31541415ad992d48446df886c41a0520bb40db894a38b49a9041ed764875786000
6
+ metadata.gz: 23a00adaff2328523e22bafb7a581ee49fd4983682cf92eefc4b4508df2885159f65d617c71abd2fb6836af41fe7c7b945b1bfd6666d5a3dccf14165d1c112b4
7
+ data.tar.gz: 76795f15c6398285973ea3ff5bac43bf173ad91bfb77e66cec331f2e6800eb6d878c599950338546b555adde0965fe179edc97a7985e20c370138619a850201c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-managedkafka_v1
2
2
 
3
+ ### v0.9.0 (2025-06-29)
4
+
5
+ * Regenerated from discovery document revision 20250623
6
+
7
+ ### v0.8.0 (2025-06-08)
8
+
9
+ * Regenerated from discovery document revision 20250529
10
+ * Regenerated using generator version 0.18.0
11
+
3
12
  ### v0.7.0 (2025-05-18)
4
13
 
5
14
  * Regenerated from discovery document revision 20250508
@@ -225,6 +225,27 @@ module Google
225
225
  end
226
226
  end
227
227
 
228
+ # A configuration for the Google Certificate Authority Service.
229
+ class CertificateAuthorityServiceConfig
230
+ include Google::Apis::Core::Hashable
231
+
232
+ # Required. The name of the CA pool to pull CA certificates from. Structured
233
+ # like: projects/`project`/locations/`location`/caPools/`ca_pool`. The CA pool
234
+ # does not need to be in the same project or location as the Kafka cluster.
235
+ # Corresponds to the JSON property `caPool`
236
+ # @return [String]
237
+ attr_accessor :ca_pool
238
+
239
+ def initialize(**args)
240
+ update!(**args)
241
+ end
242
+
243
+ # Update properties of this object
244
+ def update!(**args)
245
+ @ca_pool = args[:ca_pool] if args.key?(:ca_pool)
246
+ end
247
+ end
248
+
228
249
  # Request for CheckCompatibility.
229
250
  class CheckCompatibilityRequest
230
251
  include Google::Apis::Core::Hashable
@@ -343,6 +364,11 @@ module Google
343
364
  # @return [String]
344
365
  attr_accessor :state
345
366
 
367
+ # The TLS configuration for the Kafka cluster.
368
+ # Corresponds to the JSON property `tlsConfig`
369
+ # @return [Google::Apis::ManagedkafkaV1::TlsConfig]
370
+ attr_accessor :tls_config
371
+
346
372
  # Output only. The time when the cluster was last updated.
347
373
  # Corresponds to the JSON property `updateTime`
348
374
  # @return [String]
@@ -363,6 +389,7 @@ module Google
363
389
  @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
364
390
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
365
391
  @state = args[:state] if args.key?(:state)
392
+ @tls_config = args[:tls_config] if args.key?(:tls_config)
366
393
  @update_time = args[:update_time] if args.key?(:update_time)
367
394
  end
368
395
  end
@@ -1556,18 +1583,18 @@ module Google
1556
1583
  end
1557
1584
 
1558
1585
  # SchemaMode represents the mode of a schema registry or a specific subject.
1559
- # Four modes are supported: * NONE: This is the default mode for a subject and
1560
- # essentially means that the subject does not have any mode set. This means the
1561
- # subject will follow the schema registry's mode. * READONLY: The schema
1562
- # registry is in read-only mode. * READWRITE: The schema registry is in read-
1563
- # write mode, which allows limited write operations on the schema. * IMPORT: The
1564
- # schema registry is in import mode, which allows more editing operations on the
1565
- # schema for data importing purposes.
1586
+ # Four modes are supported: * NONE: deprecated. This was the default mode for a
1587
+ # subject, but now the default is unset (which means use the global schema
1588
+ # registry setting) * READONLY: The schema registry is in read-only mode. *
1589
+ # READWRITE: The schema registry is in read-write mode, which allows limited
1590
+ # write operations on the schema. * IMPORT: The schema registry is in import
1591
+ # mode, which allows more editing operations on the schema for data importing
1592
+ # purposes.
1566
1593
  class SchemaMode
1567
1594
  include Google::Apis::Core::Hashable
1568
1595
 
1569
1596
  # Required. The mode type of a schema registry (READWRITE by default) or of a
1570
- # subject (NONE by default, which means use the global schema registry setting).
1597
+ # subject (unset by default, which means use the global schema registry setting).
1571
1598
  # Corresponds to the JSON property `mode`
1572
1599
  # @return [String]
1573
1600
  attr_accessor :mode
@@ -1788,6 +1815,37 @@ module Google
1788
1815
  end
1789
1816
  end
1790
1817
 
1818
+ # The TLS configuration for the Kafka cluster.
1819
+ class TlsConfig
1820
+ include Google::Apis::Core::Hashable
1821
+
1822
+ # Optional. A list of rules for mapping from SSL principal names to short names.
1823
+ # These are applied in order by Kafka. Refer to the Apache Kafka documentation
1824
+ # for `ssl.principal.mapping.rules` for the precise formatting details and
1825
+ # syntax. Example: "RULE:^CN=(.*?),OU=ServiceUsers.*$/$1@example.com/,DEFAULT"
1826
+ # This is a static Kafka broker configuration. Setting or modifying this field
1827
+ # will trigger a rolling restart of the Kafka brokers to apply the change. An
1828
+ # empty string means no rules are applied (Kafka default).
1829
+ # Corresponds to the JSON property `sslPrincipalMappingRules`
1830
+ # @return [String]
1831
+ attr_accessor :ssl_principal_mapping_rules
1832
+
1833
+ # Sources of CA certificates to install in the broker's truststore.
1834
+ # Corresponds to the JSON property `trustConfig`
1835
+ # @return [Google::Apis::ManagedkafkaV1::TrustConfig]
1836
+ attr_accessor :trust_config
1837
+
1838
+ def initialize(**args)
1839
+ update!(**args)
1840
+ end
1841
+
1842
+ # Update properties of this object
1843
+ def update!(**args)
1844
+ @ssl_principal_mapping_rules = args[:ssl_principal_mapping_rules] if args.key?(:ssl_principal_mapping_rules)
1845
+ @trust_config = args[:trust_config] if args.key?(:trust_config)
1846
+ end
1847
+ end
1848
+
1791
1849
  # A Kafka topic in a given cluster.
1792
1850
  class Topic
1793
1851
  include Google::Apis::Core::Hashable
@@ -1833,6 +1891,26 @@ module Google
1833
1891
  end
1834
1892
  end
1835
1893
 
1894
+ # Sources of CA certificates to install in the broker's truststore.
1895
+ class TrustConfig
1896
+ include Google::Apis::Core::Hashable
1897
+
1898
+ # Optional. Configuration for the Google Certificate Authority Service. Maximum
1899
+ # 10.
1900
+ # Corresponds to the JSON property `casConfigs`
1901
+ # @return [Array<Google::Apis::ManagedkafkaV1::CertificateAuthorityServiceConfig>]
1902
+ attr_accessor :cas_configs
1903
+
1904
+ def initialize(**args)
1905
+ update!(**args)
1906
+ end
1907
+
1908
+ # Update properties of this object
1909
+ def update!(**args)
1910
+ @cas_configs = args[:cas_configs] if args.key?(:cas_configs)
1911
+ end
1912
+ end
1913
+
1836
1914
  # Request for updating schema config. On a SchemaSubject-level SchemaConfig, an
1837
1915
  # unset field will be removed from the SchemaConfig.
1838
1916
  class UpdateSchemaConfigRequest
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ManagedkafkaV1
18
18
  # Version of the google-apis-managedkafka_v1 gem
19
- GEM_VERSION = "0.7.0"
19
+ GEM_VERSION = "0.9.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.17.0"
22
+ GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250508"
25
+ REVISION = "20250623"
26
26
  end
27
27
  end
28
28
  end
@@ -58,6 +58,12 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
+ class CertificateAuthorityServiceConfig
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
61
67
  class CheckCompatibilityRequest
62
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
69
 
@@ -358,12 +364,24 @@ module Google
358
364
  include Google::Apis::Core::JsonObjectSupport
359
365
  end
360
366
 
367
+ class TlsConfig
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
361
373
  class Topic
362
374
  class Representation < Google::Apis::Core::JsonRepresentation; end
363
375
 
364
376
  include Google::Apis::Core::JsonObjectSupport
365
377
  end
366
378
 
379
+ class TrustConfig
380
+ class Representation < Google::Apis::Core::JsonRepresentation; end
381
+
382
+ include Google::Apis::Core::JsonObjectSupport
383
+ end
384
+
367
385
  class UpdateSchemaConfigRequest
368
386
  class Representation < Google::Apis::Core::JsonRepresentation; end
369
387
 
@@ -430,6 +448,13 @@ module Google
430
448
  end
431
449
  end
432
450
 
451
+ class CertificateAuthorityServiceConfig
452
+ # @private
453
+ class Representation < Google::Apis::Core::JsonRepresentation
454
+ property :ca_pool, as: 'caPool'
455
+ end
456
+ end
457
+
433
458
  class CheckCompatibilityRequest
434
459
  # @private
435
460
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -464,6 +489,8 @@ module Google
464
489
  property :satisfies_pzi, as: 'satisfiesPzi'
465
490
  property :satisfies_pzs, as: 'satisfiesPzs'
466
491
  property :state, as: 'state'
492
+ property :tls_config, as: 'tlsConfig', class: Google::Apis::ManagedkafkaV1::TlsConfig, decorator: Google::Apis::ManagedkafkaV1::TlsConfig::Representation
493
+
467
494
  property :update_time, as: 'updateTime'
468
495
  end
469
496
  end
@@ -882,6 +909,15 @@ module Google
882
909
  end
883
910
  end
884
911
 
912
+ class TlsConfig
913
+ # @private
914
+ class Representation < Google::Apis::Core::JsonRepresentation
915
+ property :ssl_principal_mapping_rules, as: 'sslPrincipalMappingRules'
916
+ property :trust_config, as: 'trustConfig', class: Google::Apis::ManagedkafkaV1::TrustConfig, decorator: Google::Apis::ManagedkafkaV1::TrustConfig::Representation
917
+
918
+ end
919
+ end
920
+
885
921
  class Topic
886
922
  # @private
887
923
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -892,6 +928,14 @@ module Google
892
928
  end
893
929
  end
894
930
 
931
+ class TrustConfig
932
+ # @private
933
+ class Representation < Google::Apis::Core::JsonRepresentation
934
+ collection :cas_configs, as: 'casConfigs', class: Google::Apis::ManagedkafkaV1::CertificateAuthorityServiceConfig, decorator: Google::Apis::ManagedkafkaV1::CertificateAuthorityServiceConfig::Representation
935
+
936
+ end
937
+ end
938
+
895
939
  class UpdateSchemaConfigRequest
896
940
  # @private
897
941
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2145,6 +2145,39 @@ module Google
2145
2145
  execute_or_queue_command(command, &block)
2146
2146
  end
2147
2147
 
2148
+ # Delete schema mode for a subject.
2149
+ # @param [String] name
2150
+ # Required. The resource name of subject to delete the mode for. The format is *
2151
+ # projects/`project`/locations/`location`/schemaRegistries/`schema_registry`/
2152
+ # mode/`subject` * projects/`project`/locations/`location`/schemaRegistries/`
2153
+ # schema_registry`/contexts/`context`/mode/`subject`
2154
+ # @param [String] fields
2155
+ # Selector specifying which fields to include in a partial response.
2156
+ # @param [String] quota_user
2157
+ # Available to use for quota purposes for server-side applications. Can be any
2158
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2159
+ # @param [Google::Apis::RequestOptions] options
2160
+ # Request-specific options
2161
+ #
2162
+ # @yield [result, err] Result & error if block supplied
2163
+ # @yieldparam result [Google::Apis::ManagedkafkaV1::SchemaMode] parsed result object
2164
+ # @yieldparam err [StandardError] error object if request failed
2165
+ #
2166
+ # @return [Google::Apis::ManagedkafkaV1::SchemaMode]
2167
+ #
2168
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2169
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2170
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2171
+ def delete_project_location_schema_registry_context_mode(name, fields: nil, quota_user: nil, options: nil, &block)
2172
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2173
+ command.response_representation = Google::Apis::ManagedkafkaV1::SchemaMode::Representation
2174
+ command.response_class = Google::Apis::ManagedkafkaV1::SchemaMode
2175
+ command.params['name'] = name unless name.nil?
2176
+ command.query['fields'] = fields unless fields.nil?
2177
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2178
+ execute_or_queue_command(command, &block)
2179
+ end
2180
+
2148
2181
  # Get mode at global level or for a subject.
2149
2182
  # @param [String] name
2150
2183
  # Required. The resource name of the mode. The format is * projects/`project`/
@@ -2757,6 +2790,39 @@ module Google
2757
2790
  execute_or_queue_command(command, &block)
2758
2791
  end
2759
2792
 
2793
+ # Delete schema mode for a subject.
2794
+ # @param [String] name
2795
+ # Required. The resource name of subject to delete the mode for. The format is *
2796
+ # projects/`project`/locations/`location`/schemaRegistries/`schema_registry`/
2797
+ # mode/`subject` * projects/`project`/locations/`location`/schemaRegistries/`
2798
+ # schema_registry`/contexts/`context`/mode/`subject`
2799
+ # @param [String] fields
2800
+ # Selector specifying which fields to include in a partial response.
2801
+ # @param [String] quota_user
2802
+ # Available to use for quota purposes for server-side applications. Can be any
2803
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2804
+ # @param [Google::Apis::RequestOptions] options
2805
+ # Request-specific options
2806
+ #
2807
+ # @yield [result, err] Result & error if block supplied
2808
+ # @yieldparam result [Google::Apis::ManagedkafkaV1::SchemaMode] parsed result object
2809
+ # @yieldparam err [StandardError] error object if request failed
2810
+ #
2811
+ # @return [Google::Apis::ManagedkafkaV1::SchemaMode]
2812
+ #
2813
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2814
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2815
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2816
+ def delete_project_location_schema_registry_mode(name, fields: nil, quota_user: nil, options: nil, &block)
2817
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2818
+ command.response_representation = Google::Apis::ManagedkafkaV1::SchemaMode::Representation
2819
+ command.response_class = Google::Apis::ManagedkafkaV1::SchemaMode
2820
+ command.params['name'] = name unless name.nil?
2821
+ command.query['fields'] = fields unless fields.nil?
2822
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2823
+ execute_or_queue_command(command, &block)
2824
+ end
2825
+
2760
2826
  # Get mode at global level or for a subject.
2761
2827
  # @param [String] name
2762
2828
  # Required. The resource name of the mode. The format is * projects/`project`/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-managedkafka_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-managedkafka_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-managedkafka_v1/v0.7.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-managedkafka_v1/v0.9.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-managedkafka_v1
62
62
  rdoc_options: []
63
63
  require_paths:
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.8
76
+ rubygems_version: 3.6.9
77
77
  specification_version: 4
78
78
  summary: Simple REST client for Managed Service for Apache Kafka API V1
79
79
  test_files: []