1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
10 "git.arvados.org/arvados.git/sdk/go/arvados"
13 // ContainerRequestCreate defers to railsProxy for everything except
14 // vocabulary checking.
15 func (conn *Conn) ContainerRequestCreate(ctx context.Context, opts arvados.CreateOptions) (arvados.ContainerRequest, error) {
17 err := conn.checkProperties(ctx, opts.Attrs["properties"])
19 return arvados.ContainerRequest{}, err
21 resp, err := conn.railsProxy.ContainerRequestCreate(ctx, opts)
28 // ContainerRequestUpdate defers to railsProxy for everything except
29 // vocabulary checking.
30 func (conn *Conn) ContainerRequestUpdate(ctx context.Context, opts arvados.UpdateOptions) (arvados.ContainerRequest, error) {
32 err := conn.checkProperties(ctx, opts.Attrs["properties"])
34 return arvados.ContainerRequest{}, err
36 resp, err := conn.railsProxy.ContainerRequestUpdate(ctx, opts)
43 func (conn *Conn) ContainerRequestGet(ctx context.Context, opts arvados.GetOptions) (arvados.ContainerRequest, error) {
45 return conn.railsProxy.ContainerRequestGet(ctx, opts)
48 func (conn *Conn) ContainerRequestList(ctx context.Context, opts arvados.ListOptions) (arvados.ContainerRequestList, error) {
50 return conn.railsProxy.ContainerRequestList(ctx, opts)
53 func (conn *Conn) ContainerRequestDelete(ctx context.Context, opts arvados.DeleteOptions) (arvados.ContainerRequest, error) {
55 return conn.railsProxy.ContainerRequestDelete(ctx, opts)