diff --git a/api_names_out.yaml b/api_names_out.yaml index 9570f8efdde..fa81c02cac6 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -348557,6 +348557,18 @@ "/parametermanager:v1/ListParametersResponse/parameters/parameter": parameter "/parametermanager:v1/ListParametersResponse/unreachable": unreachable "/parametermanager:v1/ListParametersResponse/unreachable/unreachable": unreachable +"/parametermanager:v1/ListTemplateVersionsResponse": list_template_versions_response +"/parametermanager:v1/ListTemplateVersionsResponse/nextPageToken": next_page_token +"/parametermanager:v1/ListTemplateVersionsResponse/templateVersions": template_versions +"/parametermanager:v1/ListTemplateVersionsResponse/templateVersions/template_version": template_version +"/parametermanager:v1/ListTemplateVersionsResponse/unreachable": unreachable +"/parametermanager:v1/ListTemplateVersionsResponse/unreachable/unreachable": unreachable +"/parametermanager:v1/ListTemplatesResponse": list_templates_response +"/parametermanager:v1/ListTemplatesResponse/nextPageToken": next_page_token +"/parametermanager:v1/ListTemplatesResponse/templates": templates +"/parametermanager:v1/ListTemplatesResponse/templates/template": template +"/parametermanager:v1/ListTemplatesResponse/unreachable": unreachable +"/parametermanager:v1/ListTemplatesResponse/unreachable/unreachable": unreachable "/parametermanager:v1/Location": location "/parametermanager:v1/Location/displayName": display_name "/parametermanager:v1/Location/labels": labels @@ -348587,9 +348599,30 @@ "/parametermanager:v1/RenderParameterVersionResponse/parameterVersion": parameter_version "/parametermanager:v1/RenderParameterVersionResponse/payload": payload "/parametermanager:v1/RenderParameterVersionResponse/renderedPayload": rendered_payload +"/parametermanager:v1/RenderTemplateVersionResponse": render_template_version_response +"/parametermanager:v1/RenderTemplateVersionResponse/parameterVersion": parameter_version +"/parametermanager:v1/RenderTemplateVersionResponse/payload": payload +"/parametermanager:v1/RenderTemplateVersionResponse/renderedPayload": rendered_payload +"/parametermanager:v1/RenderTemplateVersionResponse/templateFormat": template_format +"/parametermanager:v1/RenderTemplateVersionResponse/templateVersion": template_version "/parametermanager:v1/ResourcePolicyMember": resource_policy_member "/parametermanager:v1/ResourcePolicyMember/iamPolicyNamePrincipal": iam_policy_name_principal "/parametermanager:v1/ResourcePolicyMember/iamPolicyUidPrincipal": iam_policy_uid_principal +"/parametermanager:v1/Template": template +"/parametermanager:v1/Template/createTime": create_time +"/parametermanager:v1/Template/format": format +"/parametermanager:v1/Template/labels": labels +"/parametermanager:v1/Template/labels/label": label +"/parametermanager:v1/Template/name": name +"/parametermanager:v1/Template/updateTime": update_time +"/parametermanager:v1/TemplateVersion": template_version +"/parametermanager:v1/TemplateVersion/createTime": create_time +"/parametermanager:v1/TemplateVersion/disabled": disabled +"/parametermanager:v1/TemplateVersion/name": name +"/parametermanager:v1/TemplateVersion/payload": payload +"/parametermanager:v1/TemplateVersion/updateTime": update_time +"/parametermanager:v1/TemplateVersionPayload": template_version_payload +"/parametermanager:v1/TemplateVersionPayload/data": data "/parametermanager:v1/fields": fields "/parametermanager:v1/key": key "/parametermanager:v1/parametermanager.projects.locations.get": get_project_location @@ -348641,6 +348674,48 @@ "/parametermanager:v1/parametermanager.projects.locations.parameters.versions.patch/updateMask": update_mask "/parametermanager:v1/parametermanager.projects.locations.parameters.versions.render": render_project_location_parameter_version "/parametermanager:v1/parametermanager.projects.locations.parameters.versions.render/name": name +"/parametermanager:v1/parametermanager.projects.locations.templates.create": create_project_location_template +"/parametermanager:v1/parametermanager.projects.locations.templates.create/parent": parent +"/parametermanager:v1/parametermanager.projects.locations.templates.create/requestId": request_id +"/parametermanager:v1/parametermanager.projects.locations.templates.create/templateId": template_id +"/parametermanager:v1/parametermanager.projects.locations.templates.delete": delete_project_location_template +"/parametermanager:v1/parametermanager.projects.locations.templates.delete/name": name +"/parametermanager:v1/parametermanager.projects.locations.templates.delete/requestId": request_id +"/parametermanager:v1/parametermanager.projects.locations.templates.get": get_project_location_template +"/parametermanager:v1/parametermanager.projects.locations.templates.get/name": name +"/parametermanager:v1/parametermanager.projects.locations.templates.list": list_project_location_templates +"/parametermanager:v1/parametermanager.projects.locations.templates.list/filter": filter +"/parametermanager:v1/parametermanager.projects.locations.templates.list/orderBy": order_by +"/parametermanager:v1/parametermanager.projects.locations.templates.list/pageSize": page_size +"/parametermanager:v1/parametermanager.projects.locations.templates.list/pageToken": page_token +"/parametermanager:v1/parametermanager.projects.locations.templates.list/parent": parent +"/parametermanager:v1/parametermanager.projects.locations.templates.patch": patch_project_location_template +"/parametermanager:v1/parametermanager.projects.locations.templates.patch/name": name +"/parametermanager:v1/parametermanager.projects.locations.templates.patch/requestId": request_id +"/parametermanager:v1/parametermanager.projects.locations.templates.patch/updateMask": update_mask +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.create": create_project_location_template_version +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.create/parent": parent +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.create/requestId": request_id +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.create/templateVersionId": template_version_id +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.delete": delete_project_location_template_version +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.delete/name": name +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.delete/requestId": request_id +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.get": get_project_location_template_version +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.get/name": name +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.get/view": view +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.list": list_project_location_template_versions +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.list/filter": filter +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.list/orderBy": order_by +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.list/pageSize": page_size +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.list/pageToken": page_token +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.list/parent": parent +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.patch": patch_project_location_template_version +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.patch/name": name +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.patch/requestId": request_id +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.patch/updateMask": update_mask +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.render": render_project_location_template_version +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.render/name": name +"/parametermanager:v1/parametermanager.projects.locations.templates.versions.render/parameterVersion": parameter_version "/parametermanager:v1/quotaUser": quota_user "/partners:v2/AdWordsManagerAccountInfo": ad_words_manager_account_info "/partners:v2/AdWordsManagerAccountInfo/customerName": customer_name diff --git a/generated/google-apis-parametermanager_v1/CHANGELOG.md b/generated/google-apis-parametermanager_v1/CHANGELOG.md index e5a2ea966d3..c3dce62fde6 100644 --- a/generated/google-apis-parametermanager_v1/CHANGELOG.md +++ b/generated/google-apis-parametermanager_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-parametermanager_v1 +### v0.10.0 (2026-07-12) + +* Regenerated from discovery document revision 20260629 + ### v0.9.0 (2026-06-14) * Regenerated using generator version 0.19.0 diff --git a/generated/google-apis-parametermanager_v1/lib/google/apis/parametermanager_v1/classes.rb b/generated/google-apis-parametermanager_v1/lib/google/apis/parametermanager_v1/classes.rb index a9566b2c1f0..0598999dd1b 100644 --- a/generated/google-apis-parametermanager_v1/lib/google/apis/parametermanager_v1/classes.rb +++ b/generated/google-apis-parametermanager_v1/lib/google/apis/parametermanager_v1/classes.rb @@ -125,6 +125,68 @@ def update!(**args) end end + # Message for response to listing TemplateVersions + class ListTemplateVersionsResponse + include Google::Apis::Core::Hashable + + # A token identifying a page of results the server should return. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of TemplateVersions + # Corresponds to the JSON property `templateVersions` + # @return [Array] + attr_accessor :template_versions + + # Unordered list. Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @template_versions = args[:template_versions] if args.key?(:template_versions) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # Message for response to listing Templates + class ListTemplatesResponse + include Google::Apis::Core::Hashable + + # A token identifying a page of results the server should return. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of Templates + # Corresponds to the JSON property `templates` + # @return [Array] + attr_accessor :templates + + # Unordered list. Locations that could not be reached. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @templates = args[:templates] if args.key?(:templates) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + # A resource that represents a Google Cloud location. class Location include Google::Apis::Core::Hashable @@ -346,6 +408,55 @@ def update!(**args) end end + # Message describing RenderTemplateVersionResponse resource + class RenderTemplateVersionResponse + include Google::Apis::Core::Hashable + + # Output only. The resource name of the ParameterVersion used to render the + # template version in the format `projects/*/locations/*/parameters/*/versions/*` + # . + # Corresponds to the JSON property `parameterVersion` + # @return [String] + attr_accessor :parameter_version + + # Message for storing a TemplateVersion resource's payload data + # Corresponds to the JSON property `payload` + # @return [Google::Apis::ParametermanagerV1::TemplateVersionPayload] + attr_accessor :payload + + # Output only. Server generated rendered version of the user provided payload + # data (TemplateVersionPayload) which has all the variables resolved using the + # provided parameter version. + # Corresponds to the JSON property `renderedPayload` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :rendered_payload + + # Output only. Format of the template version. + # Corresponds to the JSON property `templateFormat` + # @return [String] + attr_accessor :template_format + + # Resource identifier of a TemplateVersion in the format `projects/*/locations/*/ + # templates/*/versions/*`. + # Corresponds to the JSON property `templateVersion` + # @return [String] + attr_accessor :template_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @parameter_version = args[:parameter_version] if args.key?(:parameter_version) + @payload = args[:payload] if args.key?(:payload) + @rendered_payload = args[:rendered_payload] if args.key?(:rendered_payload) + @template_format = args[:template_format] if args.key?(:template_format) + @template_version = args[:template_version] if args.key?(:template_version) + end + end + # Output-only policy member strings of a Google Cloud resource's built-in # identity. class ResourcePolicyMember @@ -379,6 +490,116 @@ def update!(**args) @iam_policy_uid_principal = args[:iam_policy_uid_principal] if args.key?(:iam_policy_uid_principal) end end + + # Message describing Template resource + class Template + include Google::Apis::Core::Hashable + + # Output only. Create time stamp + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Optional. Specifies the format of a Template. + # Corresponds to the JSON property `format` + # @return [String] + attr_accessor :format + + # Optional. Labels as key value pairs + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Identifier. The resource name of the Template in the format `projects/*/ + # locations/*/templates/*`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. Update time stamp + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @format = args[:format] if args.key?(:format) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Message describing TemplateVersion resource + class TemplateVersion + include Google::Apis::Core::Hashable + + # Output only. Create time stamp + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Optional. Disabled boolean to determine if a TemplateVersion acts as a + # metadata only resource (payload is never returned if disabled is true). + # Corresponds to the JSON property `disabled` + # @return [Boolean] + attr_accessor :disabled + alias_method :disabled?, :disabled + + # Identifier. The resource name of the TemplateVersion in the format `projects/*/ + # locations/*/templates/*/versions/*`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Message for storing a TemplateVersion resource's payload data + # Corresponds to the JSON property `payload` + # @return [Google::Apis::ParametermanagerV1::TemplateVersionPayload] + attr_accessor :payload + + # Output only. Update time stamp + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @disabled = args[:disabled] if args.key?(:disabled) + @name = args[:name] if args.key?(:name) + @payload = args[:payload] if args.key?(:payload) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Message for storing a TemplateVersion resource's payload data + class TemplateVersionPayload + include Google::Apis::Core::Hashable + + # Required. bytes data for storing payload. + # Corresponds to the JSON property `data` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :data + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data = args[:data] if args.key?(:data) + end + end end end end diff --git a/generated/google-apis-parametermanager_v1/lib/google/apis/parametermanager_v1/gem_version.rb b/generated/google-apis-parametermanager_v1/lib/google/apis/parametermanager_v1/gem_version.rb index ef218dbbbdf..507d0315523 100644 --- a/generated/google-apis-parametermanager_v1/lib/google/apis/parametermanager_v1/gem_version.rb +++ b/generated/google-apis-parametermanager_v1/lib/google/apis/parametermanager_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module ParametermanagerV1 # Version of the google-apis-parametermanager_v1 gem - GEM_VERSION = "0.9.0" + GEM_VERSION = "0.10.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.19.0" # Revision of the discovery document this client was generated from - REVISION = "20260422" + REVISION = "20260629" end end end diff --git a/generated/google-apis-parametermanager_v1/lib/google/apis/parametermanager_v1/representations.rb b/generated/google-apis-parametermanager_v1/lib/google/apis/parametermanager_v1/representations.rb index f3fcee0d416..870fd0fb469 100644 --- a/generated/google-apis-parametermanager_v1/lib/google/apis/parametermanager_v1/representations.rb +++ b/generated/google-apis-parametermanager_v1/lib/google/apis/parametermanager_v1/representations.rb @@ -46,6 +46,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ListTemplateVersionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListTemplatesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Location class Representation < Google::Apis::Core::JsonRepresentation; end @@ -76,12 +88,36 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class RenderTemplateVersionResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ResourcePolicyMember class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Template + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TemplateVersion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TemplateVersionPayload + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -117,6 +153,26 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class ListTemplateVersionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :template_versions, as: 'templateVersions', class: Google::Apis::ParametermanagerV1::TemplateVersion, decorator: Google::Apis::ParametermanagerV1::TemplateVersion::Representation + + collection :unreachable, as: 'unreachable' + end + end + + class ListTemplatesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :templates, as: 'templates', class: Google::Apis::ParametermanagerV1::Template, decorator: Google::Apis::ParametermanagerV1::Template::Representation + + collection :unreachable, as: 'unreachable' + end + end + class Location # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -172,6 +228,18 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class RenderTemplateVersionResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :parameter_version, as: 'parameterVersion' + property :payload, as: 'payload', class: Google::Apis::ParametermanagerV1::TemplateVersionPayload, decorator: Google::Apis::ParametermanagerV1::TemplateVersionPayload::Representation + + property :rendered_payload, :base64 => true, as: 'renderedPayload' + property :template_format, as: 'templateFormat' + property :template_version, as: 'templateVersion' + end + end + class ResourcePolicyMember # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -179,6 +247,36 @@ class Representation < Google::Apis::Core::JsonRepresentation property :iam_policy_uid_principal, as: 'iamPolicyUidPrincipal' end end + + class Template + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :format, as: 'format' + hash :labels, as: 'labels' + property :name, as: 'name' + property :update_time, as: 'updateTime' + end + end + + class TemplateVersion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :disabled, as: 'disabled' + property :name, as: 'name' + property :payload, as: 'payload', class: Google::Apis::ParametermanagerV1::TemplateVersionPayload, decorator: Google::Apis::ParametermanagerV1::TemplateVersionPayload::Representation + + property :update_time, as: 'updateTime' + end + end + + class TemplateVersionPayload + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data, :base64 => true, as: 'data' + end + end end end end diff --git a/generated/google-apis-parametermanager_v1/lib/google/apis/parametermanager_v1/service.rb b/generated/google-apis-parametermanager_v1/lib/google/apis/parametermanager_v1/service.rb index c0470dea92b..bae1b6e8e27 100644 --- a/generated/google-apis-parametermanager_v1/lib/google/apis/parametermanager_v1/service.rb +++ b/generated/google-apis-parametermanager_v1/lib/google/apis/parametermanager_v1/service.rb @@ -617,6 +617,487 @@ def render_project_location_parameter_version(name, fields: nil, quota_user: nil command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Creates a new Template in a given project and location. + # @param [String] parent + # Required. Value for parent in the format `projects/*/locations/*`. + # @param [Google::Apis::ParametermanagerV1::Template] template_object + # @param [String] request_id + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will guarantee + # that for at least 60 minutes since the first request. For example, consider a + # situation where you make an initial request and the request times out. If you + # make the request again with the same request ID, the server can check if + # original operation with the same request ID was received, and if so, will + # ignore the second request. This prevents clients from accidentally creating + # duplicate commitments. The request ID must be a valid UUID with the exception + # that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + # @param [String] template_id + # Required. Id of the Template resource + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ParametermanagerV1::Template] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ParametermanagerV1::Template] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_template(parent, template_object = nil, request_id: nil, template_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/templates', options) + command.request_representation = Google::Apis::ParametermanagerV1::Template::Representation + command.request_object = template_object + command.response_representation = Google::Apis::ParametermanagerV1::Template::Representation + command.response_class = Google::Apis::ParametermanagerV1::Template + command.params['parent'] = parent unless parent.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['templateId'] = template_id unless template_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a single Template. + # @param [String] name + # Required. Name of the resource in the format `projects/*/locations/*/templates/ + # *`. + # @param [String] request_id + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will guarantee + # that for at least 60 minutes after the first request. For example, consider a + # situation where you make an initial request and the request times out. If you + # make the request again with the same request ID, the server can check if + # original operation with the same request ID was received, and if so, will + # ignore the second request. This prevents clients from accidentally creating + # duplicate commitments. The request ID must be a valid UUID with the exception + # that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ParametermanagerV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ParametermanagerV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_template(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::ParametermanagerV1::Empty::Representation + command.response_class = Google::Apis::ParametermanagerV1::Empty + command.params['name'] = name unless name.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets details of a single Template. + # @param [String] name + # Required. Name of the resource in the format `projects/*/locations/*/templates/ + # *`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ParametermanagerV1::Template] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ParametermanagerV1::Template] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_template(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::ParametermanagerV1::Template::Representation + command.response_class = Google::Apis::ParametermanagerV1::Template + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists Templates in a given project and location. + # @param [String] parent + # Required. Parent value for ListTemplatesRequest in the format `projects/*/ + # locations/*`. + # @param [String] filter + # Optional. Filtering results + # @param [String] order_by + # Optional. Hint for how to order the results + # @param [Fixnum] page_size + # Optional. Requested page size. Server may return fewer items than requested. + # If unspecified, server will pick an appropriate default. + # @param [String] page_token + # Optional. A page token, received from a previous `ListTemplates` call. Provide + # this to retrieve the subsequent page. When paginating, all other parameters + # provided to `ListTemplates` must match the call that provided the page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ParametermanagerV1::ListTemplatesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ParametermanagerV1::ListTemplatesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_templates(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/templates', options) + command.response_representation = Google::Apis::ParametermanagerV1::ListTemplatesResponse::Representation + command.response_class = Google::Apis::ParametermanagerV1::ListTemplatesResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a single Template. + # @param [String] name + # Identifier. The resource name of the Template in the format `projects/*/ + # locations/*/templates/*`. + # @param [Google::Apis::ParametermanagerV1::Template] template_object + # @param [String] request_id + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will guarantee + # that for at least 60 minutes since the first request. For example, consider a + # situation where you make an initial request and the request times out. If you + # make the request again with the same request ID, the server can check if + # original operation with the same request ID was received, and if so, will + # ignore the second request. This prevents clients from accidentally creating + # duplicate commitments. The request ID must be a valid UUID with the exception + # that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + # @param [String] update_mask + # Optional. Field mask is used to specify the fields to be overwritten in the + # Template resource by the update. The fields specified in the update_mask are + # relative to the resource, not the full request. A mutable field will be + # overwritten if it is in the mask. If the user does not provide a mask then all + # mutable fields present in the request will be overwritten. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ParametermanagerV1::Template] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ParametermanagerV1::Template] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_template(name, template_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::ParametermanagerV1::Template::Representation + command.request_object = template_object + command.response_representation = Google::Apis::ParametermanagerV1::Template::Representation + command.response_class = Google::Apis::ParametermanagerV1::Template + command.params['name'] = name unless name.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new TemplateVersion in a given project, location, and template. + # @param [String] parent + # Required. Value for parent in the format `projects/*/locations/*/templates/*`. + # @param [Google::Apis::ParametermanagerV1::TemplateVersion] template_version_object + # @param [String] request_id + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will guarantee + # that for at least 60 minutes since the first request. For example, consider a + # situation where you make an initial request and the request times out. If you + # make the request again with the same request ID, the server can check if + # original operation with the same request ID was received, and if so, will + # ignore the second request. This prevents clients from accidentally creating + # duplicate commitments. The request ID must be a valid UUID with the exception + # that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + # @param [String] template_version_id + # Required. Id of the TemplateVersion resource + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ParametermanagerV1::TemplateVersion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ParametermanagerV1::TemplateVersion] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_template_version(parent, template_version_object = nil, request_id: nil, template_version_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/versions', options) + command.request_representation = Google::Apis::ParametermanagerV1::TemplateVersion::Representation + command.request_object = template_version_object + command.response_representation = Google::Apis::ParametermanagerV1::TemplateVersion::Representation + command.response_class = Google::Apis::ParametermanagerV1::TemplateVersion + command.params['parent'] = parent unless parent.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['templateVersionId'] = template_version_id unless template_version_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a single TemplateVersion. + # @param [String] name + # Required. Name of the resource in the format `projects/*/locations/*/templates/ + # */versions/*`. + # @param [String] request_id + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will guarantee + # that for at least 60 minutes after the first request. For example, consider a + # situation where you make an initial request and the request times out. If you + # make the request again with the same request ID, the server can check if + # original operation with the same request ID was received, and if so, will + # ignore the second request. This prevents clients from accidentally creating + # duplicate commitments. The request ID must be a valid UUID with the exception + # that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ParametermanagerV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ParametermanagerV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_template_version(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::ParametermanagerV1::Empty::Representation + command.response_class = Google::Apis::ParametermanagerV1::Empty + command.params['name'] = name unless name.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets details of a single TemplateVersion. + # @param [String] name + # Required. Name of the resource in the format `projects/*/locations/*/templates/ + # */versions/*`. + # @param [String] view + # Optional. Specifies the view of the TemplateVersion to return. In the default + # FULL view, all metadata & payload associated with the TemplateVersion will be + # returned. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ParametermanagerV1::TemplateVersion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ParametermanagerV1::TemplateVersion] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_template_version(name, view: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::ParametermanagerV1::TemplateVersion::Representation + command.response_class = Google::Apis::ParametermanagerV1::TemplateVersion + command.params['name'] = name unless name.nil? + command.query['view'] = view unless view.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists TemplateVersions in a given project, location, and template. + # @param [String] parent + # Required. Parent value for ListTemplateVersionsRequest in the format `projects/ + # */locations/*/templates/*`. + # @param [String] filter + # Optional. Filtering results + # @param [String] order_by + # Optional. Hint for how to order the results + # @param [Fixnum] page_size + # Optional. Requested page size. Server may return fewer items than requested. + # If unspecified, server will pick an appropriate default. + # @param [String] page_token + # Optional. A page token, received from a previous `ListTemplateVersions` call. + # Provide this to retrieve the subsequent page. When paginating, all other + # parameters provided to `ListTemplateVersions` must match the call that + # provided the page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ParametermanagerV1::ListTemplateVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ParametermanagerV1::ListTemplateVersionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_template_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/versions', options) + command.response_representation = Google::Apis::ParametermanagerV1::ListTemplateVersionsResponse::Representation + command.response_class = Google::Apis::ParametermanagerV1::ListTemplateVersionsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a single TemplateVersion. + # @param [String] name + # Identifier. The resource name of the TemplateVersion in the format `projects/*/ + # locations/*/templates/*/versions/*`. + # @param [Google::Apis::ParametermanagerV1::TemplateVersion] template_version_object + # @param [String] request_id + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will guarantee + # that for at least 60 minutes since the first request. For example, consider a + # situation where you make an initial request and the request times out. If you + # make the request again with the same request ID, the server can check if + # original operation with the same request ID was received, and if so, will + # ignore the second request. This prevents clients from accidentally creating + # duplicate commitments. The request ID must be a valid UUID with the exception + # that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + # @param [String] update_mask + # Optional. Field mask is used to specify the fields to be overwritten in the + # TemplateVersion resource by the update. The fields specified in the + # update_mask are relative to the resource, not the full request. A mutable + # field will be overwritten if it is in the mask. If the user does not provide a + # mask then all mutable fields present in the request will be overwritten. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ParametermanagerV1::TemplateVersion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ParametermanagerV1::TemplateVersion] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_template_version(name, template_version_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::ParametermanagerV1::TemplateVersion::Representation + command.request_object = template_version_object + command.response_representation = Google::Apis::ParametermanagerV1::TemplateVersion::Representation + command.response_class = Google::Apis::ParametermanagerV1::TemplateVersion + command.params['name'] = name unless name.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets rendered version of a TemplateVersion. + # @param [String] name + # Required. Name of the resource + # @param [String] parameter_version + # Required. Parameter version used to render the template version. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ParametermanagerV1::RenderTemplateVersionResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ParametermanagerV1::RenderTemplateVersionResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def render_project_location_template_version(name, parameter_version: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}:render', options) + command.response_representation = Google::Apis::ParametermanagerV1::RenderTemplateVersionResponse::Representation + command.response_class = Google::Apis::ParametermanagerV1::RenderTemplateVersionResponse + command.params['name'] = name unless name.nil? + command.query['parameterVersion'] = parameter_version unless parameter_version.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected