Skip to content

Commit 8827556

Browse files
feat: Automated regeneration of osconfig v2 client (googleapis#26395)
Auto-created at 2026-05-03 11:42:02 +0000 using the toys pull request generator.
1 parent 50491a5 commit 8827556

5 files changed

Lines changed: 41 additions & 266 deletions

File tree

generated/google-apis-osconfig_v2/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-osconfig_v2
22

3+
### v0.8.0 (2026-05-03)
4+
5+
* Regenerated from discovery document revision 20260423
6+
37
### v0.7.0 (2026-04-19)
48

59
* Regenerated from discovery document revision 20260325

generated/google-apis-osconfig_v2/lib/google/apis/osconfig_v2/classes.rb

Lines changed: 20 additions & 195 deletions
Original file line numberDiff line numberDiff line change
@@ -78,183 +78,6 @@ def update!(**args)
7878
end
7979
end
8080

81-
# Represents the metadata of a generic long-running operation.
82-
class GoogleCloudOsconfigCommonV1OperationMetadata
83-
include Google::Apis::Core::Hashable
84-
85-
# Output only. API version used to start the operation.
86-
# Corresponds to the JSON property `apiVersion`
87-
# @return [String]
88-
attr_accessor :api_version
89-
90-
# Output only. The time the operation was created.
91-
# Corresponds to the JSON property `createTime`
92-
# @return [String]
93-
attr_accessor :create_time
94-
95-
# Output only. The time the operation finished running.
96-
# Corresponds to the JSON property `endTime`
97-
# @return [String]
98-
attr_accessor :end_time
99-
100-
# Output only. Identifies whether the user has requested cancellation of the
101-
# operation. Operations that have successfully been cancelled have Operation.
102-
# error value with a google.rpc.Status.code of 1, corresponding to `Code.
103-
# CANCELLED`.
104-
# Corresponds to the JSON property `requestedCancellation`
105-
# @return [Boolean]
106-
attr_accessor :requested_cancellation
107-
alias_method :requested_cancellation?, :requested_cancellation
108-
109-
# Output only. Human-readable status of the operation, if any.
110-
# Corresponds to the JSON property `statusMessage`
111-
# @return [String]
112-
attr_accessor :status_message
113-
114-
# Output only. Server-defined resource path for the target of the operation.
115-
# Corresponds to the JSON property `target`
116-
# @return [String]
117-
attr_accessor :target
118-
119-
# Output only. Name of the verb executed by the operation.
120-
# Corresponds to the JSON property `verb`
121-
# @return [String]
122-
attr_accessor :verb
123-
124-
def initialize(**args)
125-
update!(**args)
126-
end
127-
128-
# Update properties of this object
129-
def update!(**args)
130-
@api_version = args[:api_version] if args.key?(:api_version)
131-
@create_time = args[:create_time] if args.key?(:create_time)
132-
@end_time = args[:end_time] if args.key?(:end_time)
133-
@requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
134-
@status_message = args[:status_message] if args.key?(:status_message)
135-
@target = args[:target] if args.key?(:target)
136-
@verb = args[:verb] if args.key?(:verb)
137-
end
138-
end
139-
140-
# Represents the metadata of a generic long-running operation.
141-
class GoogleCloudOsconfigCommonV1alphaOperationMetadata
142-
include Google::Apis::Core::Hashable
143-
144-
# Output only. API version used to start the operation.
145-
# Corresponds to the JSON property `apiVersion`
146-
# @return [String]
147-
attr_accessor :api_version
148-
149-
# Output only. The time the operation was created.
150-
# Corresponds to the JSON property `createTime`
151-
# @return [String]
152-
attr_accessor :create_time
153-
154-
# Output only. The time the operation finished running.
155-
# Corresponds to the JSON property `endTime`
156-
# @return [String]
157-
attr_accessor :end_time
158-
159-
# Output only. Identifies whether the user has requested cancellation of the
160-
# operation. Operations that have successfully been cancelled have Operation.
161-
# error value with a google.rpc.Status.code of 1, corresponding to `Code.
162-
# CANCELLED`.
163-
# Corresponds to the JSON property `requestedCancellation`
164-
# @return [Boolean]
165-
attr_accessor :requested_cancellation
166-
alias_method :requested_cancellation?, :requested_cancellation
167-
168-
# Output only. Human-readable status of the operation, if any.
169-
# Corresponds to the JSON property `statusMessage`
170-
# @return [String]
171-
attr_accessor :status_message
172-
173-
# Output only. Server-defined resource path for the target of the operation.
174-
# Corresponds to the JSON property `target`
175-
# @return [String]
176-
attr_accessor :target
177-
178-
# Output only. Name of the verb executed by the operation.
179-
# Corresponds to the JSON property `verb`
180-
# @return [String]
181-
attr_accessor :verb
182-
183-
def initialize(**args)
184-
update!(**args)
185-
end
186-
187-
# Update properties of this object
188-
def update!(**args)
189-
@api_version = args[:api_version] if args.key?(:api_version)
190-
@create_time = args[:create_time] if args.key?(:create_time)
191-
@end_time = args[:end_time] if args.key?(:end_time)
192-
@requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
193-
@status_message = args[:status_message] if args.key?(:status_message)
194-
@target = args[:target] if args.key?(:target)
195-
@verb = args[:verb] if args.key?(:verb)
196-
end
197-
end
198-
199-
# Represents the metadata of a generic long-running operation.
200-
class GoogleCloudOsconfigCommonV1mainOperationMetadata
201-
include Google::Apis::Core::Hashable
202-
203-
# Output only. API version used to start the operation.
204-
# Corresponds to the JSON property `apiVersion`
205-
# @return [String]
206-
attr_accessor :api_version
207-
208-
# Output only. The time the operation was created.
209-
# Corresponds to the JSON property `createTime`
210-
# @return [String]
211-
attr_accessor :create_time
212-
213-
# Output only. The time the operation finished running.
214-
# Corresponds to the JSON property `endTime`
215-
# @return [String]
216-
attr_accessor :end_time
217-
218-
# Output only. Identifies whether the user has requested cancellation of the
219-
# operation. Operations that have successfully been cancelled have Operation.
220-
# error value with a google.rpc.Status.code of 1, corresponding to `Code.
221-
# CANCELLED`.
222-
# Corresponds to the JSON property `requestedCancellation`
223-
# @return [Boolean]
224-
attr_accessor :requested_cancellation
225-
alias_method :requested_cancellation?, :requested_cancellation
226-
227-
# Output only. Human-readable status of the operation, if any.
228-
# Corresponds to the JSON property `statusMessage`
229-
# @return [String]
230-
attr_accessor :status_message
231-
232-
# Output only. Server-defined resource path for the target of the operation.
233-
# Corresponds to the JSON property `target`
234-
# @return [String]
235-
attr_accessor :target
236-
237-
# Output only. Name of the verb executed by the operation.
238-
# Corresponds to the JSON property `verb`
239-
# @return [String]
240-
attr_accessor :verb
241-
242-
def initialize(**args)
243-
update!(**args)
244-
end
245-
246-
# Update properties of this object
247-
def update!(**args)
248-
@api_version = args[:api_version] if args.key?(:api_version)
249-
@create_time = args[:create_time] if args.key?(:create_time)
250-
@end_time = args[:end_time] if args.key?(:end_time)
251-
@requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
252-
@status_message = args[:status_message] if args.key?(:status_message)
253-
@target = args[:target] if args.key?(:target)
254-
@verb = args[:verb] if args.key?(:verb)
255-
end
256-
end
257-
25881
# OS policy assignment operation metadata provided by OS policy assignment API
25982
# methods that return long running operations.
26083
class GoogleCloudOsconfigV1OsPolicyAssignmentOperationMetadata
@@ -615,20 +438,21 @@ def update!(**args)
615438
end
616439
end
617440

618-
# PolicyOrchestrator helps managing project+zone level policy resources (e.g. OS
619-
# Policy Assignments), by providing tools to create, update and delete them
620-
# across projects and locations, at scale. Policy orchestrator functions as an
621-
# endless loop. Each iteration orchestrator computes a set of resources that
622-
# should be affected, then progressively applies changes to them. If for some
623-
# reason this set of resources changes over time (e.g. new projects are added),
624-
# the future loop iterations will address that. Orchestrator can either upsert
625-
# or delete policy resources. For more details, see the description of the `
626-
# action`, and `orchestrated_resource` fields. Note that policy orchestrator do
627-
# not "manage" the resources it creates. Every iteration is independent and only
628-
# minimal history of past actions is retained (apart from Cloud Logging). If
629-
# orchestrator gets deleted, it does not affect the resources it created in the
630-
# past. Those will remain where they were. Same applies if projects are removed
631-
# from the orchestrator's scope.
441+
# A policy orchestrator manages project-level and zone-level policy resources,
442+
# such as OS policy assignments. It provides methods to create, update, and
443+
# delete these resources across projects and locations at scale. The policy
444+
# orchestrator operates as a continuous loop. In each iteration, the
445+
# orchestrator identifies the set of resources to be modified and progressively
446+
# applies changes. If the set of resources changes over time (for example, if
447+
# you add new projects), subsequent iterations address those changes. The
448+
# orchestrator can either upsert or delete policy resources. For more details,
449+
# see the `action` and `orchestrated_resource` fields. The policy orchestrator
450+
# does not manage the lifecycle of the resources it creates. Each iteration is
451+
# independent and, besides Cloud Logging, the orchestrator retains only a
452+
# minimal history of past actions. Deleting the orchestrator does not affect
453+
# previously created resources; these resources remain in their current state.
454+
# Similarly, removing projects from the orchestrator's scope does not affect
455+
# existing resources.
632456
class GoogleCloudOsconfigV2PolicyOrchestrator
633457
include Google::Apis::Core::Hashable
634458

@@ -662,10 +486,11 @@ class GoogleCloudOsconfigV2PolicyOrchestrator
662486
# @return [Hash<String,String>]
663487
attr_accessor :labels
664488

665-
# Immutable. Identifier. In form of * `organizations/`organization_id`/locations/
666-
# global/policyOrchestrators/`orchestrator_id`` * `folders/`folder_id`/locations/
667-
# global/policyOrchestrators/`orchestrator_id`` * `projects/`
668-
# project_id_or_number`/locations/global/policyOrchestrators/`orchestrator_id``
489+
# Immutable. Identifier. In the following format: * `organizations/`
490+
# organization_id`/locations/global/policyOrchestrators/`orchestrator_id`` * `
491+
# folders/`folder_id`/locations/global/policyOrchestrators/`orchestrator_id`` * `
492+
# projects/`project_id_or_number`/locations/global/policyOrchestrators/`
493+
# orchestrator_id``
669494
# Corresponds to the JSON property `name`
670495
# @return [String]
671496
attr_accessor :name

generated/google-apis-osconfig_v2/lib/google/apis/osconfig_v2/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module OsconfigV2
1818
# Version of the google-apis-osconfig_v2 gem
19-
GEM_VERSION = "0.7.0"
19+
GEM_VERSION = "0.8.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20260325"
25+
REVISION = "20260423"
2626
end
2727
end
2828
end

generated/google-apis-osconfig_v2/lib/google/apis/osconfig_v2/representations.rb

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,6 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
4040
include Google::Apis::Core::JsonObjectSupport
4141
end
4242

43-
class GoogleCloudOsconfigCommonV1OperationMetadata
44-
class Representation < Google::Apis::Core::JsonRepresentation; end
45-
46-
include Google::Apis::Core::JsonObjectSupport
47-
end
48-
49-
class GoogleCloudOsconfigCommonV1alphaOperationMetadata
50-
class Representation < Google::Apis::Core::JsonRepresentation; end
51-
52-
include Google::Apis::Core::JsonObjectSupport
53-
end
54-
55-
class GoogleCloudOsconfigCommonV1mainOperationMetadata
56-
class Representation < Google::Apis::Core::JsonRepresentation; end
57-
58-
include Google::Apis::Core::JsonObjectSupport
59-
end
60-
6143
class GoogleCloudOsconfigV1OsPolicyAssignmentOperationMetadata
6244
class Representation < Google::Apis::Core::JsonRepresentation; end
6345

@@ -354,45 +336,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
354336
end
355337
end
356338

357-
class GoogleCloudOsconfigCommonV1OperationMetadata
358-
# @private
359-
class Representation < Google::Apis::Core::JsonRepresentation
360-
property :api_version, as: 'apiVersion'
361-
property :create_time, as: 'createTime'
362-
property :end_time, as: 'endTime'
363-
property :requested_cancellation, as: 'requestedCancellation'
364-
property :status_message, as: 'statusMessage'
365-
property :target, as: 'target'
366-
property :verb, as: 'verb'
367-
end
368-
end
369-
370-
class GoogleCloudOsconfigCommonV1alphaOperationMetadata
371-
# @private
372-
class Representation < Google::Apis::Core::JsonRepresentation
373-
property :api_version, as: 'apiVersion'
374-
property :create_time, as: 'createTime'
375-
property :end_time, as: 'endTime'
376-
property :requested_cancellation, as: 'requestedCancellation'
377-
property :status_message, as: 'statusMessage'
378-
property :target, as: 'target'
379-
property :verb, as: 'verb'
380-
end
381-
end
382-
383-
class GoogleCloudOsconfigCommonV1mainOperationMetadata
384-
# @private
385-
class Representation < Google::Apis::Core::JsonRepresentation
386-
property :api_version, as: 'apiVersion'
387-
property :create_time, as: 'createTime'
388-
property :end_time, as: 'endTime'
389-
property :requested_cancellation, as: 'requestedCancellation'
390-
property :status_message, as: 'statusMessage'
391-
property :target, as: 'target'
392-
property :verb, as: 'verb'
393-
end
394-
end
395-
396339
class GoogleCloudOsconfigV1OsPolicyAssignmentOperationMetadata
397340
# @private
398341
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-osconfig_v2/lib/google/apis/osconfig_v2/service.rb

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,11 @@ def list_folder_location_global_policy_orchestrators(parent, filter: nil, order_
231231

232232
# Updates an existing policy orchestrator, parented by a folder.
233233
# @param [String] name
234-
# Immutable. Identifier. In form of * `organizations/`organization_id`/locations/
235-
# global/policyOrchestrators/`orchestrator_id`` * `folders/`folder_id`/locations/
236-
# global/policyOrchestrators/`orchestrator_id`` * `projects/`
237-
# project_id_or_number`/locations/global/policyOrchestrators/`orchestrator_id``
234+
# Immutable. Identifier. In the following format: * `organizations/`
235+
# organization_id`/locations/global/policyOrchestrators/`orchestrator_id`` * `
236+
# folders/`folder_id`/locations/global/policyOrchestrators/`orchestrator_id`` * `
237+
# projects/`project_id_or_number`/locations/global/policyOrchestrators/`
238+
# orchestrator_id``
238239
# @param [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator] google_cloud_osconfig_v2__policy_orchestrator_object
239240
# @param [String] update_mask
240241
# Optional. The list of fields to merge into the existing policy orchestrator. A
@@ -612,10 +613,11 @@ def list_organization_location_global_policy_orchestrators(parent, filter: nil,
612613

613614
# Updates an existing policy orchestrator, parented by an organization.
614615
# @param [String] name
615-
# Immutable. Identifier. In form of * `organizations/`organization_id`/locations/
616-
# global/policyOrchestrators/`orchestrator_id`` * `folders/`folder_id`/locations/
617-
# global/policyOrchestrators/`orchestrator_id`` * `projects/`
618-
# project_id_or_number`/locations/global/policyOrchestrators/`orchestrator_id``
616+
# Immutable. Identifier. In the following format: * `organizations/`
617+
# organization_id`/locations/global/policyOrchestrators/`orchestrator_id`` * `
618+
# folders/`folder_id`/locations/global/policyOrchestrators/`orchestrator_id`` * `
619+
# projects/`project_id_or_number`/locations/global/policyOrchestrators/`
620+
# orchestrator_id``
619621
# @param [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator] google_cloud_osconfig_v2__policy_orchestrator_object
620622
# @param [String] update_mask
621623
# Optional. The list of fields to merge into the existing policy orchestrator. A
@@ -993,10 +995,11 @@ def list_project_location_global_policy_orchestrators(parent, filter: nil, order
993995

994996
# Updates an existing policy orchestrator, parented by a project.
995997
# @param [String] name
996-
# Immutable. Identifier. In form of * `organizations/`organization_id`/locations/
997-
# global/policyOrchestrators/`orchestrator_id`` * `folders/`folder_id`/locations/
998-
# global/policyOrchestrators/`orchestrator_id`` * `projects/`
999-
# project_id_or_number`/locations/global/policyOrchestrators/`orchestrator_id``
998+
# Immutable. Identifier. In the following format: * `organizations/`
999+
# organization_id`/locations/global/policyOrchestrators/`orchestrator_id`` * `
1000+
# folders/`folder_id`/locations/global/policyOrchestrators/`orchestrator_id`` * `
1001+
# projects/`project_id_or_number`/locations/global/policyOrchestrators/`
1002+
# orchestrator_id``
10001003
# @param [Google::Apis::OsconfigV2::GoogleCloudOsconfigV2PolicyOrchestrator] google_cloud_osconfig_v2__policy_orchestrator_object
10011004
# @param [String] update_mask
10021005
# Optional. The list of fields to merge into the existing policy orchestrator. A

0 commit comments

Comments
 (0)