@@ -125,6 +125,68 @@ def update!(**args)
125125 end
126126 end
127127
128+ # Message for response to listing TemplateVersions
129+ class ListTemplateVersionsResponse
130+ include Google ::Apis ::Core ::Hashable
131+
132+ # A token identifying a page of results the server should return.
133+ # Corresponds to the JSON property `nextPageToken`
134+ # @return [String]
135+ attr_accessor :next_page_token
136+
137+ # The list of TemplateVersions
138+ # Corresponds to the JSON property `templateVersions`
139+ # @return [Array<Google::Apis::ParametermanagerV1::TemplateVersion>]
140+ attr_accessor :template_versions
141+
142+ # Unordered list. Locations that could not be reached.
143+ # Corresponds to the JSON property `unreachable`
144+ # @return [Array<String>]
145+ attr_accessor :unreachable
146+
147+ def initialize ( **args )
148+ update! ( **args )
149+ end
150+
151+ # Update properties of this object
152+ def update! ( **args )
153+ @next_page_token = args [ :next_page_token ] if args . key? ( :next_page_token )
154+ @template_versions = args [ :template_versions ] if args . key? ( :template_versions )
155+ @unreachable = args [ :unreachable ] if args . key? ( :unreachable )
156+ end
157+ end
158+
159+ # Message for response to listing Templates
160+ class ListTemplatesResponse
161+ include Google ::Apis ::Core ::Hashable
162+
163+ # A token identifying a page of results the server should return.
164+ # Corresponds to the JSON property `nextPageToken`
165+ # @return [String]
166+ attr_accessor :next_page_token
167+
168+ # The list of Templates
169+ # Corresponds to the JSON property `templates`
170+ # @return [Array<Google::Apis::ParametermanagerV1::Template>]
171+ attr_accessor :templates
172+
173+ # Unordered list. Locations that could not be reached.
174+ # Corresponds to the JSON property `unreachable`
175+ # @return [Array<String>]
176+ attr_accessor :unreachable
177+
178+ def initialize ( **args )
179+ update! ( **args )
180+ end
181+
182+ # Update properties of this object
183+ def update! ( **args )
184+ @next_page_token = args [ :next_page_token ] if args . key? ( :next_page_token )
185+ @templates = args [ :templates ] if args . key? ( :templates )
186+ @unreachable = args [ :unreachable ] if args . key? ( :unreachable )
187+ end
188+ end
189+
128190 # A resource that represents a Google Cloud location.
129191 class Location
130192 include Google ::Apis ::Core ::Hashable
@@ -346,6 +408,55 @@ def update!(**args)
346408 end
347409 end
348410
411+ # Message describing RenderTemplateVersionResponse resource
412+ class RenderTemplateVersionResponse
413+ include Google ::Apis ::Core ::Hashable
414+
415+ # Output only. The resource name of the ParameterVersion used to render the
416+ # template version in the format `projects/*/locations/*/parameters/*/versions/*`
417+ # .
418+ # Corresponds to the JSON property `parameterVersion`
419+ # @return [String]
420+ attr_accessor :parameter_version
421+
422+ # Message for storing a TemplateVersion resource's payload data
423+ # Corresponds to the JSON property `payload`
424+ # @return [Google::Apis::ParametermanagerV1::TemplateVersionPayload]
425+ attr_accessor :payload
426+
427+ # Output only. Server generated rendered version of the user provided payload
428+ # data (TemplateVersionPayload) which has all the variables resolved using the
429+ # provided parameter version.
430+ # Corresponds to the JSON property `renderedPayload`
431+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
432+ # @return [String]
433+ attr_accessor :rendered_payload
434+
435+ # Output only. Format of the template version.
436+ # Corresponds to the JSON property `templateFormat`
437+ # @return [String]
438+ attr_accessor :template_format
439+
440+ # Resource identifier of a TemplateVersion in the format `projects/*/locations/*/
441+ # templates/*/versions/*`.
442+ # Corresponds to the JSON property `templateVersion`
443+ # @return [String]
444+ attr_accessor :template_version
445+
446+ def initialize ( **args )
447+ update! ( **args )
448+ end
449+
450+ # Update properties of this object
451+ def update! ( **args )
452+ @parameter_version = args [ :parameter_version ] if args . key? ( :parameter_version )
453+ @payload = args [ :payload ] if args . key? ( :payload )
454+ @rendered_payload = args [ :rendered_payload ] if args . key? ( :rendered_payload )
455+ @template_format = args [ :template_format ] if args . key? ( :template_format )
456+ @template_version = args [ :template_version ] if args . key? ( :template_version )
457+ end
458+ end
459+
349460 # Output-only policy member strings of a Google Cloud resource's built-in
350461 # identity.
351462 class ResourcePolicyMember
@@ -379,6 +490,116 @@ def update!(**args)
379490 @iam_policy_uid_principal = args [ :iam_policy_uid_principal ] if args . key? ( :iam_policy_uid_principal )
380491 end
381492 end
493+
494+ # Message describing Template resource
495+ class Template
496+ include Google ::Apis ::Core ::Hashable
497+
498+ # Output only. Create time stamp
499+ # Corresponds to the JSON property `createTime`
500+ # @return [String]
501+ attr_accessor :create_time
502+
503+ # Optional. Specifies the format of a Template.
504+ # Corresponds to the JSON property `format`
505+ # @return [String]
506+ attr_accessor :format
507+
508+ # Optional. Labels as key value pairs
509+ # Corresponds to the JSON property `labels`
510+ # @return [Hash<String,String>]
511+ attr_accessor :labels
512+
513+ # Identifier. The resource name of the Template in the format `projects/*/
514+ # locations/*/templates/*`.
515+ # Corresponds to the JSON property `name`
516+ # @return [String]
517+ attr_accessor :name
518+
519+ # Output only. Update time stamp
520+ # Corresponds to the JSON property `updateTime`
521+ # @return [String]
522+ attr_accessor :update_time
523+
524+ def initialize ( **args )
525+ update! ( **args )
526+ end
527+
528+ # Update properties of this object
529+ def update! ( **args )
530+ @create_time = args [ :create_time ] if args . key? ( :create_time )
531+ @format = args [ :format ] if args . key? ( :format )
532+ @labels = args [ :labels ] if args . key? ( :labels )
533+ @name = args [ :name ] if args . key? ( :name )
534+ @update_time = args [ :update_time ] if args . key? ( :update_time )
535+ end
536+ end
537+
538+ # Message describing TemplateVersion resource
539+ class TemplateVersion
540+ include Google ::Apis ::Core ::Hashable
541+
542+ # Output only. Create time stamp
543+ # Corresponds to the JSON property `createTime`
544+ # @return [String]
545+ attr_accessor :create_time
546+
547+ # Optional. Disabled boolean to determine if a TemplateVersion acts as a
548+ # metadata only resource (payload is never returned if disabled is true).
549+ # Corresponds to the JSON property `disabled`
550+ # @return [Boolean]
551+ attr_accessor :disabled
552+ alias_method :disabled? , :disabled
553+
554+ # Identifier. The resource name of the TemplateVersion in the format `projects/*/
555+ # locations/*/templates/*/versions/*`.
556+ # Corresponds to the JSON property `name`
557+ # @return [String]
558+ attr_accessor :name
559+
560+ # Message for storing a TemplateVersion resource's payload data
561+ # Corresponds to the JSON property `payload`
562+ # @return [Google::Apis::ParametermanagerV1::TemplateVersionPayload]
563+ attr_accessor :payload
564+
565+ # Output only. Update time stamp
566+ # Corresponds to the JSON property `updateTime`
567+ # @return [String]
568+ attr_accessor :update_time
569+
570+ def initialize ( **args )
571+ update! ( **args )
572+ end
573+
574+ # Update properties of this object
575+ def update! ( **args )
576+ @create_time = args [ :create_time ] if args . key? ( :create_time )
577+ @disabled = args [ :disabled ] if args . key? ( :disabled )
578+ @name = args [ :name ] if args . key? ( :name )
579+ @payload = args [ :payload ] if args . key? ( :payload )
580+ @update_time = args [ :update_time ] if args . key? ( :update_time )
581+ end
582+ end
583+
584+ # Message for storing a TemplateVersion resource's payload data
585+ class TemplateVersionPayload
586+ include Google ::Apis ::Core ::Hashable
587+
588+ # Required. bytes data for storing payload.
589+ # Corresponds to the JSON property `data`
590+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
591+ # @return [String]
592+ attr_accessor :data
593+
594+ def initialize ( **args )
595+ update! ( **args )
596+ end
597+
598+ # Update properties of this object
599+ def update! ( **args )
600+ @data = args [ :data ] if args . key? ( :data )
601+ end
602+ end
382603 end
383604 end
384605end
0 commit comments