@@ -569,6 +569,36 @@ def get_project_location_backup_plan_iam_policy(resource, options_requested_poli
569569 execute_or_queue_command ( command , &block )
570570 end
571571
572+ # Returns tags directly bound to a GCP resource.
573+ # @param [String] name
574+ # Required. The full resource name of the service resource.
575+ # @param [String] fields
576+ # Selector specifying which fields to include in a partial response.
577+ # @param [String] quota_user
578+ # Available to use for quota purposes for server-side applications. Can be any
579+ # arbitrary string assigned to a user, but should not exceed 40 characters.
580+ # @param [Google::Apis::RequestOptions] options
581+ # Request-specific options
582+ #
583+ # @yield [result, err] Result & error if block supplied
584+ # @yieldparam result [Google::Apis::GkebackupV1::GetTagsResponse] parsed result object
585+ # @yieldparam err [StandardError] error object if request failed
586+ #
587+ # @return [Google::Apis::GkebackupV1::GetTagsResponse]
588+ #
589+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
590+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
591+ # @raise [Google::Apis::AuthorizationError] Authorization is required
592+ def get_project_location_backup_plan_tags ( name , fields : nil , quota_user : nil , options : nil , &block )
593+ command = make_simple_command ( :get , 'v1/{+name}:getTags' , options )
594+ command . response_representation = Google ::Apis ::GkebackupV1 ::GetTagsResponse ::Representation
595+ command . response_class = Google ::Apis ::GkebackupV1 ::GetTagsResponse
596+ command . params [ 'name' ] = name unless name . nil?
597+ command . query [ 'fields' ] = fields unless fields . nil?
598+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
599+ execute_or_queue_command ( command , &block )
600+ end
601+
572602 # Lists BackupPlans in a given location.
573603 # @param [String] parent
574604 # Required. The location that contains the BackupPlans to list. Format: `
@@ -700,6 +730,39 @@ def set_backup_plan_iam_policy(resource, set_iam_policy_request_object = nil, fi
700730 execute_or_queue_command ( command , &block )
701731 end
702732
733+ # Updates tags directly bound to a GCP resource.
734+ # @param [String] name
735+ # Required. The full resource name of the service resource.
736+ # @param [Google::Apis::GkebackupV1::SetTagsRequest] set_tags_request_object
737+ # @param [String] fields
738+ # Selector specifying which fields to include in a partial response.
739+ # @param [String] quota_user
740+ # Available to use for quota purposes for server-side applications. Can be any
741+ # arbitrary string assigned to a user, but should not exceed 40 characters.
742+ # @param [Google::Apis::RequestOptions] options
743+ # Request-specific options
744+ #
745+ # @yield [result, err] Result & error if block supplied
746+ # @yieldparam result [Google::Apis::GkebackupV1::SetTagsResponse] parsed result object
747+ # @yieldparam err [StandardError] error object if request failed
748+ #
749+ # @return [Google::Apis::GkebackupV1::SetTagsResponse]
750+ #
751+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
752+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
753+ # @raise [Google::Apis::AuthorizationError] Authorization is required
754+ def set_backup_plan_tags ( name , set_tags_request_object = nil , fields : nil , quota_user : nil , options : nil , &block )
755+ command = make_simple_command ( :post , 'v1/{+name}:setTags' , options )
756+ command . request_representation = Google ::Apis ::GkebackupV1 ::SetTagsRequest ::Representation
757+ command . request_object = set_tags_request_object
758+ command . response_representation = Google ::Apis ::GkebackupV1 ::SetTagsResponse ::Representation
759+ command . response_class = Google ::Apis ::GkebackupV1 ::SetTagsResponse
760+ command . params [ 'name' ] = name unless name . nil?
761+ command . query [ 'fields' ] = fields unless fields . nil?
762+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
763+ execute_or_queue_command ( command , &block )
764+ end
765+
703766 # Returns permissions that a caller has on the specified resource. If the
704767 # resource does not exist, this will return an empty set of permissions, not a `
705768 # NOT_FOUND` error. Note: This operation is designed to be used for building
@@ -1895,6 +1958,36 @@ def get_project_location_restore_plan_iam_policy(resource, options_requested_pol
18951958 execute_or_queue_command ( command , &block )
18961959 end
18971960
1961+ # Returns tags directly bound to a GCP resource.
1962+ # @param [String] name
1963+ # Required. The full resource name of the service resource.
1964+ # @param [String] fields
1965+ # Selector specifying which fields to include in a partial response.
1966+ # @param [String] quota_user
1967+ # Available to use for quota purposes for server-side applications. Can be any
1968+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1969+ # @param [Google::Apis::RequestOptions] options
1970+ # Request-specific options
1971+ #
1972+ # @yield [result, err] Result & error if block supplied
1973+ # @yieldparam result [Google::Apis::GkebackupV1::GetTagsResponse] parsed result object
1974+ # @yieldparam err [StandardError] error object if request failed
1975+ #
1976+ # @return [Google::Apis::GkebackupV1::GetTagsResponse]
1977+ #
1978+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1979+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1980+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1981+ def get_project_location_restore_plan_tags ( name , fields : nil , quota_user : nil , options : nil , &block )
1982+ command = make_simple_command ( :get , 'v1/{+name}:getTags' , options )
1983+ command . response_representation = Google ::Apis ::GkebackupV1 ::GetTagsResponse ::Representation
1984+ command . response_class = Google ::Apis ::GkebackupV1 ::GetTagsResponse
1985+ command . params [ 'name' ] = name unless name . nil?
1986+ command . query [ 'fields' ] = fields unless fields . nil?
1987+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
1988+ execute_or_queue_command ( command , &block )
1989+ end
1990+
18981991 # Lists RestorePlans in a given location.
18991992 # @param [String] parent
19001993 # Required. The location that contains the RestorePlans to list. Format: `
@@ -2025,6 +2118,39 @@ def set_restore_plan_iam_policy(resource, set_iam_policy_request_object = nil, f
20252118 execute_or_queue_command ( command , &block )
20262119 end
20272120
2121+ # Updates tags directly bound to a GCP resource.
2122+ # @param [String] name
2123+ # Required. The full resource name of the service resource.
2124+ # @param [Google::Apis::GkebackupV1::SetTagsRequest] set_tags_request_object
2125+ # @param [String] fields
2126+ # Selector specifying which fields to include in a partial response.
2127+ # @param [String] quota_user
2128+ # Available to use for quota purposes for server-side applications. Can be any
2129+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2130+ # @param [Google::Apis::RequestOptions] options
2131+ # Request-specific options
2132+ #
2133+ # @yield [result, err] Result & error if block supplied
2134+ # @yieldparam result [Google::Apis::GkebackupV1::SetTagsResponse] parsed result object
2135+ # @yieldparam err [StandardError] error object if request failed
2136+ #
2137+ # @return [Google::Apis::GkebackupV1::SetTagsResponse]
2138+ #
2139+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2140+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2141+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2142+ def set_restore_plan_tags ( name , set_tags_request_object = nil , fields : nil , quota_user : nil , options : nil , &block )
2143+ command = make_simple_command ( :post , 'v1/{+name}:setTags' , options )
2144+ command . request_representation = Google ::Apis ::GkebackupV1 ::SetTagsRequest ::Representation
2145+ command . request_object = set_tags_request_object
2146+ command . response_representation = Google ::Apis ::GkebackupV1 ::SetTagsResponse ::Representation
2147+ command . response_class = Google ::Apis ::GkebackupV1 ::SetTagsResponse
2148+ command . params [ 'name' ] = name unless name . nil?
2149+ command . query [ 'fields' ] = fields unless fields . nil?
2150+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
2151+ execute_or_queue_command ( command , &block )
2152+ end
2153+
20282154 # Returns permissions that a caller has on the specified resource. If the
20292155 # resource does not exist, this will return an empty set of permissions, not a `
20302156 # NOT_FOUND` error. Note: This operation is designed to be used for building
0 commit comments