google-apis-osconfig_v2 0.2.0 → 0.4.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: '082169b60f2cf2d166c009fa978c69b508b1b792644dc8dfb7693b5310936c18'
4
- data.tar.gz: ce6dbc5920ab3951ef166d4fd14f665cd11549ea1225219040e32b6fe759778b
3
+ metadata.gz: 8f904191eb9bb7c096639b373794a94205c37001e07fc1e02c3fdf9616278d5b
4
+ data.tar.gz: 382a160fff119344d1f60cece29fbefeefb85ad73a6b7f2892c3d259176068c7
5
5
  SHA512:
6
- metadata.gz: 7148bd9d7b47a995ec04d297024c337545842a7e5e12c84dc2c16cfa0df7ae1017e8cb23055b596ce5a6feb82392a04ca04e309854cf4b3a9349ce3fd614fd1c
7
- data.tar.gz: 95210f1a24c366d0d43a2d1d2952c93a41f8a2c812113e68094b90e251ac07281c9ff7ea6d51f64896da9247918a7854008bcf5235bfa78c3d7edd7821766791
6
+ metadata.gz: a00c604d83321a3fef404f530bf7cc75af946b68d85e8cda1541983aa47ec5ca4b01dcf327a19acd4c200ff014395ed46697d263de803e89ec75d309c72908a1
7
+ data.tar.gz: bd7f338f2cf81a08905096fd5f9e6badb662c340871c418bcdb16cdbbc4b50a039fc807a31d8b78daafff0c8e7c9bf7ec90a66319a4b5caa4ec8958fa99a742e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-osconfig_v2
2
2
 
3
+ ### v0.4.0 (2025-10-05)
4
+
5
+ * Regenerated from discovery document revision 20250928
6
+ * Regenerated using generator version 0.18.0
7
+
8
+ ### v0.3.0 (2025-05-18)
9
+
10
+ * Regenerated from discovery document revision 20250511
11
+
3
12
  ### v0.2.0 (2025-05-04)
4
13
 
5
14
  * Regenerated using generator version 0.17.0
@@ -624,6 +624,13 @@ module Google
624
624
  # @return [Array<Google::Apis::OsconfigV2::Operation>]
625
625
  attr_accessor :operations
626
626
 
627
+ # Unordered list. Unreachable resources. Populated when the request sets `
628
+ # ListOperationsRequest.return_partial_success` and reads across collections e.g.
629
+ # when attempting to list all resources across all supported locations.
630
+ # Corresponds to the JSON property `unreachable`
631
+ # @return [Array<String>]
632
+ attr_accessor :unreachable
633
+
627
634
  def initialize(**args)
628
635
  update!(**args)
629
636
  end
@@ -632,6 +639,28 @@ module Google
632
639
  def update!(**args)
633
640
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
634
641
  @operations = args[:operations] if args.key?(:operations)
642
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
643
+ end
644
+ end
645
+
646
+ # This is proto2's version of MessageSet. DEPRECATED: DO NOT USE FOR NEW FIELDS.
647
+ # If you are using editions or proto2, please make your own extendable messages
648
+ # for your use case. If you are using proto3, please use `Any` instead.
649
+ # MessageSet was the implementation of extensions for proto1. When proto2 was
650
+ # introduced, extensions were implemented as a first-class feature. This schema
651
+ # for MessageSet was meant to be a "bridge" solution to migrate MessageSet-
652
+ # bearing messages from proto1 to proto2. This schema has been open-sourced only
653
+ # to facilitate the migration of Google products with MessageSet-bearing
654
+ # messages to open-source environments.
655
+ class MessageSet
656
+ include Google::Apis::Core::Hashable
657
+
658
+ def initialize(**args)
659
+ update!(**args)
660
+ end
661
+
662
+ # Update properties of this object
663
+ def update!(**args)
635
664
  end
636
665
  end
637
666
 
@@ -1867,6 +1896,64 @@ module Google
1867
1896
  @message = args[:message] if args.key?(:message)
1868
1897
  end
1869
1898
  end
1899
+
1900
+ # Wire-format for a Status object
1901
+ class StatusProto
1902
+ include Google::Apis::Core::Hashable
1903
+
1904
+ # copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional
1905
+ # int32 canonical_code = 6;
1906
+ # Corresponds to the JSON property `canonicalCode`
1907
+ # @return [Fixnum]
1908
+ attr_accessor :canonical_code
1909
+
1910
+ # Numeric code drawn from the space specified below. Often, this is the
1911
+ # canonical error space, and code is drawn from google3/util/task/codes.proto
1912
+ # copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional
1913
+ # int32 code = 1;
1914
+ # Corresponds to the JSON property `code`
1915
+ # @return [Fixnum]
1916
+ attr_accessor :code
1917
+
1918
+ # Detail message copybara:strip_begin(b/383363683) copybara:
1919
+ # strip_end_and_replace optional string message = 3;
1920
+ # Corresponds to the JSON property `message`
1921
+ # @return [String]
1922
+ attr_accessor :message
1923
+
1924
+ # This is proto2's version of MessageSet. DEPRECATED: DO NOT USE FOR NEW FIELDS.
1925
+ # If you are using editions or proto2, please make your own extendable messages
1926
+ # for your use case. If you are using proto3, please use `Any` instead.
1927
+ # MessageSet was the implementation of extensions for proto1. When proto2 was
1928
+ # introduced, extensions were implemented as a first-class feature. This schema
1929
+ # for MessageSet was meant to be a "bridge" solution to migrate MessageSet-
1930
+ # bearing messages from proto1 to proto2. This schema has been open-sourced only
1931
+ # to facilitate the migration of Google products with MessageSet-bearing
1932
+ # messages to open-source environments.
1933
+ # Corresponds to the JSON property `messageSet`
1934
+ # @return [Google::Apis::OsconfigV2::MessageSet]
1935
+ attr_accessor :message_set
1936
+
1937
+ # copybara:strip_begin(b/383363683) Space to which this status belongs copybara:
1938
+ # strip_end_and_replace optional string space = 2; // Space to which this status
1939
+ # belongs
1940
+ # Corresponds to the JSON property `space`
1941
+ # @return [String]
1942
+ attr_accessor :space
1943
+
1944
+ def initialize(**args)
1945
+ update!(**args)
1946
+ end
1947
+
1948
+ # Update properties of this object
1949
+ def update!(**args)
1950
+ @canonical_code = args[:canonical_code] if args.key?(:canonical_code)
1951
+ @code = args[:code] if args.key?(:code)
1952
+ @message = args[:message] if args.key?(:message)
1953
+ @message_set = args[:message_set] if args.key?(:message_set)
1954
+ @space = args[:space] if args.key?(:space)
1955
+ end
1956
+ end
1870
1957
  end
1871
1958
  end
1872
1959
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module OsconfigV2
18
18
  # Version of the google-apis-osconfig_v2 gem
19
- GEM_VERSION = "0.2.0"
19
+ GEM_VERSION = "0.4.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 = "20250323"
25
+ REVISION = "20250928"
26
26
  end
27
27
  end
28
28
  end
@@ -118,6 +118,12 @@ module Google
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
+ class MessageSet
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
121
127
  class OsPolicy
122
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
129
 
@@ -304,6 +310,12 @@ module Google
304
310
  include Google::Apis::Core::JsonObjectSupport
305
311
  end
306
312
 
313
+ class StatusProto
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+
316
+ include Google::Apis::Core::JsonObjectSupport
317
+ end
318
+
307
319
  class CancelOperationRequest
308
320
  # @private
309
321
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -465,6 +477,13 @@ module Google
465
477
  property :next_page_token, as: 'nextPageToken'
466
478
  collection :operations, as: 'operations', class: Google::Apis::OsconfigV2::Operation, decorator: Google::Apis::OsconfigV2::Operation::Representation
467
479
 
480
+ collection :unreachable, as: 'unreachable'
481
+ end
482
+ end
483
+
484
+ class MessageSet
485
+ # @private
486
+ class Representation < Google::Apis::Core::JsonRepresentation
468
487
  end
469
488
  end
470
489
 
@@ -795,6 +814,18 @@ module Google
795
814
  property :message, as: 'message'
796
815
  end
797
816
  end
817
+
818
+ class StatusProto
819
+ # @private
820
+ class Representation < Google::Apis::Core::JsonRepresentation
821
+ property :canonical_code, as: 'canonicalCode'
822
+ property :code, as: 'code'
823
+ property :message, as: 'message'
824
+ property :message_set, as: 'messageSet', class: Google::Apis::OsconfigV2::MessageSet, decorator: Google::Apis::OsconfigV2::MessageSet::Representation
825
+
826
+ property :space, as: 'space'
827
+ end
828
+ end
798
829
  end
799
830
  end
800
831
  end
@@ -244,12 +244,12 @@ module Google
244
244
  # repeated fields are replaced, * map fields are merged key by key, * message
245
245
  # fields are cleared if not set in the request, otherwise they are merged
246
246
  # recursively (in particular - message fields set to an empty message has no
247
- # side effects) If field mask is not specified, it is automatically inferred
248
- # from the request using following rules: * primitive fields are listed, if set
249
- # to a non-default value (as there is no way to distinguish between default and
250
- # unset value), * map and repeated fields are listed, * `google.protobuf.Any`
251
- # fields are listed, * other message fields are traversed recursively. Note:
252
- # implicit mask does not allow clearing fields.
247
+ # side effects) If field mask (or its paths) is not specified, it is
248
+ # automatically inferred from the request using following rules: * primitive
249
+ # fields are listed, if set to a non-default value (as there is no way to
250
+ # distinguish between default and unset value), * map and repeated fields are
251
+ # listed, * `google.protobuf.Any` fields are listed, * other message fields are
252
+ # traversed recursively. Note: implicit mask does not allow clearing fields.
253
253
  # @param [String] fields
254
254
  # Selector specifying which fields to include in a partial response.
255
255
  # @param [String] quota_user
@@ -394,6 +394,13 @@ module Google
394
394
  # The standard list page size.
395
395
  # @param [String] page_token
396
396
  # The standard list page token.
397
+ # @param [Boolean] return_partial_success
398
+ # When set to `true`, operations that are reachable are returned as normal, and
399
+ # those that are unreachable are returned in the [ListOperationsResponse.
400
+ # unreachable] field. This can only be `true` when reading across collections e.
401
+ # g. when `parent` is set to `"projects/example/locations/-"`. This field is not
402
+ # by default supported and will result in an `UNIMPLEMENTED` error if set unless
403
+ # explicitly documented otherwise in service or product specific documentation.
397
404
  # @param [String] fields
398
405
  # Selector specifying which fields to include in a partial response.
399
406
  # @param [String] quota_user
@@ -411,7 +418,7 @@ module Google
411
418
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
412
419
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
413
420
  # @raise [Google::Apis::AuthorizationError] Authorization is required
414
- def list_folder_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
421
+ def list_folder_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
415
422
  command = make_simple_command(:get, 'v2/{+name}/operations', options)
416
423
  command.response_representation = Google::Apis::OsconfigV2::ListOperationsResponse::Representation
417
424
  command.response_class = Google::Apis::OsconfigV2::ListOperationsResponse
@@ -419,6 +426,7 @@ module Google
419
426
  command.query['filter'] = filter unless filter.nil?
420
427
  command.query['pageSize'] = page_size unless page_size.nil?
421
428
  command.query['pageToken'] = page_token unless page_token.nil?
429
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
422
430
  command.query['fields'] = fields unless fields.nil?
423
431
  command.query['quotaUser'] = quota_user unless quota_user.nil?
424
432
  execute_or_queue_command(command, &block)
@@ -616,12 +624,12 @@ module Google
616
624
  # repeated fields are replaced, * map fields are merged key by key, * message
617
625
  # fields are cleared if not set in the request, otherwise they are merged
618
626
  # recursively (in particular - message fields set to an empty message has no
619
- # side effects) If field mask is not specified, it is automatically inferred
620
- # from the request using following rules: * primitive fields are listed, if set
621
- # to a non-default value (as there is no way to distinguish between default and
622
- # unset value), * map and repeated fields are listed, * `google.protobuf.Any`
623
- # fields are listed, * other message fields are traversed recursively. Note:
624
- # implicit mask does not allow clearing fields.
627
+ # side effects) If field mask (or its paths) is not specified, it is
628
+ # automatically inferred from the request using following rules: * primitive
629
+ # fields are listed, if set to a non-default value (as there is no way to
630
+ # distinguish between default and unset value), * map and repeated fields are
631
+ # listed, * `google.protobuf.Any` fields are listed, * other message fields are
632
+ # traversed recursively. Note: implicit mask does not allow clearing fields.
625
633
  # @param [String] fields
626
634
  # Selector specifying which fields to include in a partial response.
627
635
  # @param [String] quota_user
@@ -766,6 +774,13 @@ module Google
766
774
  # The standard list page size.
767
775
  # @param [String] page_token
768
776
  # The standard list page token.
777
+ # @param [Boolean] return_partial_success
778
+ # When set to `true`, operations that are reachable are returned as normal, and
779
+ # those that are unreachable are returned in the [ListOperationsResponse.
780
+ # unreachable] field. This can only be `true` when reading across collections e.
781
+ # g. when `parent` is set to `"projects/example/locations/-"`. This field is not
782
+ # by default supported and will result in an `UNIMPLEMENTED` error if set unless
783
+ # explicitly documented otherwise in service or product specific documentation.
769
784
  # @param [String] fields
770
785
  # Selector specifying which fields to include in a partial response.
771
786
  # @param [String] quota_user
@@ -783,7 +798,7 @@ module Google
783
798
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
784
799
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
785
800
  # @raise [Google::Apis::AuthorizationError] Authorization is required
786
- def list_organization_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
801
+ def list_organization_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
787
802
  command = make_simple_command(:get, 'v2/{+name}/operations', options)
788
803
  command.response_representation = Google::Apis::OsconfigV2::ListOperationsResponse::Representation
789
804
  command.response_class = Google::Apis::OsconfigV2::ListOperationsResponse
@@ -791,6 +806,7 @@ module Google
791
806
  command.query['filter'] = filter unless filter.nil?
792
807
  command.query['pageSize'] = page_size unless page_size.nil?
793
808
  command.query['pageToken'] = page_token unless page_token.nil?
809
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
794
810
  command.query['fields'] = fields unless fields.nil?
795
811
  command.query['quotaUser'] = quota_user unless quota_user.nil?
796
812
  execute_or_queue_command(command, &block)
@@ -988,12 +1004,12 @@ module Google
988
1004
  # repeated fields are replaced, * map fields are merged key by key, * message
989
1005
  # fields are cleared if not set in the request, otherwise they are merged
990
1006
  # recursively (in particular - message fields set to an empty message has no
991
- # side effects) If field mask is not specified, it is automatically inferred
992
- # from the request using following rules: * primitive fields are listed, if set
993
- # to a non-default value (as there is no way to distinguish between default and
994
- # unset value), * map and repeated fields are listed, * `google.protobuf.Any`
995
- # fields are listed, * other message fields are traversed recursively. Note:
996
- # implicit mask does not allow clearing fields.
1007
+ # side effects) If field mask (or its paths) is not specified, it is
1008
+ # automatically inferred from the request using following rules: * primitive
1009
+ # fields are listed, if set to a non-default value (as there is no way to
1010
+ # distinguish between default and unset value), * map and repeated fields are
1011
+ # listed, * `google.protobuf.Any` fields are listed, * other message fields are
1012
+ # traversed recursively. Note: implicit mask does not allow clearing fields.
997
1013
  # @param [String] fields
998
1014
  # Selector specifying which fields to include in a partial response.
999
1015
  # @param [String] quota_user
@@ -1138,6 +1154,13 @@ module Google
1138
1154
  # The standard list page size.
1139
1155
  # @param [String] page_token
1140
1156
  # The standard list page token.
1157
+ # @param [Boolean] return_partial_success
1158
+ # When set to `true`, operations that are reachable are returned as normal, and
1159
+ # those that are unreachable are returned in the [ListOperationsResponse.
1160
+ # unreachable] field. This can only be `true` when reading across collections e.
1161
+ # g. when `parent` is set to `"projects/example/locations/-"`. This field is not
1162
+ # by default supported and will result in an `UNIMPLEMENTED` error if set unless
1163
+ # explicitly documented otherwise in service or product specific documentation.
1141
1164
  # @param [String] fields
1142
1165
  # Selector specifying which fields to include in a partial response.
1143
1166
  # @param [String] quota_user
@@ -1155,7 +1178,7 @@ module Google
1155
1178
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1156
1179
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1157
1180
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1158
- def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1181
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
1159
1182
  command = make_simple_command(:get, 'v2/{+name}/operations', options)
1160
1183
  command.response_representation = Google::Apis::OsconfigV2::ListOperationsResponse::Representation
1161
1184
  command.response_class = Google::Apis::OsconfigV2::ListOperationsResponse
@@ -1163,6 +1186,7 @@ module Google
1163
1186
  command.query['filter'] = filter unless filter.nil?
1164
1187
  command.query['pageSize'] = page_size unless page_size.nil?
1165
1188
  command.query['pageToken'] = page_token unless page_token.nil?
1189
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
1166
1190
  command.query['fields'] = fields unless fields.nil?
1167
1191
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1168
1192
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-osconfig_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.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-osconfig_v2/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v2/v0.2.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v2/v0.4.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-osconfig_v2
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 OS Config API V2
79
79
  test_files: []