Vertex AI API . projects . modelGardenEula

Instance Methods

accept(parent, body=None, x__xgafv=None)

Accepts the EULA acceptance status of a publisher model.

check(parent, body=None, x__xgafv=None)

Checks the EULA acceptance status of a publisher model.

close()

Close httplib2 connections.

Method Details

accept(parent, body=None, x__xgafv=None)
Accepts the EULA acceptance status of a publisher model.

Args:
  parent: string, Required. The project requesting access for named model. The format is `projects/{project}`. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for ModelGardenService.AcceptPublisherModelEula.
  "publisherModel": "A String", # Required. The name of the PublisherModel resource. Format: `publishers/{publisher}/models/{publisher_model}`, or `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}`
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for ModelGardenService.UpdatePublisherModelEula.
  "projectNumber": "A String", # The project number requesting access for named model.
  "publisherModel": "A String", # The publisher model resource name.
  "publisherModelEulaAcked": True or False, # The EULA content acceptance status.
}
check(parent, body=None, x__xgafv=None)
Checks the EULA acceptance status of a publisher model.

Args:
  parent: string, Required. The project requesting access for named model. The format is `projects/{project}`. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for ModelGardenService.CheckPublisherModelEula.
  "publisherModel": "A String", # Required. The name of the PublisherModel resource. Format: `publishers/{publisher}/models/{publisher_model}`, or `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}`
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for ModelGardenService.UpdatePublisherModelEula.
  "projectNumber": "A String", # The project number requesting access for named model.
  "publisherModel": "A String", # The publisher model resource name.
  "publisherModelEulaAcked": True or False, # The EULA content acceptance status.
}
close()
Close httplib2 connections.