Reference documentation and code samples for the Google Cloud Security Command Center V2 Client class AiModel.
Contains information about the AI model associated with the finding.
Generated from protobuf message google.cloud.securitycenter.v2.AiModel
Namespace
Google \ Cloud \ SecurityCenter \ V2Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
The name of the AI model, for example, "gemini:1.0.0". |
↳ domain |
string
The domain of the model, for example, “image-classification”. |
↳ library |
string
The name of the model library, for example, “transformers”. |
↳ location |
string
The region in which the model is used, for example, “us-central1”. |
↳ publisher |
string
The publisher of the model, for example, “google” or “nvidia”. |
↳ deployment_platform |
int
The platform on which the model is deployed. |
↳ display_name |
string
The user defined display name of model. Ex. baseline-classification-model |
getName
The name of the AI model, for example, "gemini:1.0.0".
Returns | |
---|---|
Type | Description |
string |
setName
The name of the AI model, for example, "gemini:1.0.0".
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDomain
The domain of the model, for example, “image-classification”.
Returns | |
---|---|
Type | Description |
string |
setDomain
The domain of the model, for example, “image-classification”.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getLibrary
The name of the model library, for example, “transformers”.
Returns | |
---|---|
Type | Description |
string |
setLibrary
The name of the model library, for example, “transformers”.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getLocation
The region in which the model is used, for example, “us-central1”.
Returns | |
---|---|
Type | Description |
string |
setLocation
The region in which the model is used, for example, “us-central1”.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getPublisher
The publisher of the model, for example, “google” or “nvidia”.
Returns | |
---|---|
Type | Description |
string |
setPublisher
The publisher of the model, for example, “google” or “nvidia”.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDeploymentPlatform
The platform on which the model is deployed.
Returns | |
---|---|
Type | Description |
int |
setDeploymentPlatform
The platform on which the model is deployed.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getDisplayName
The user defined display name of model. Ex. baseline-classification-model
Returns | |
---|---|
Type | Description |
string |
setDisplayName
The user defined display name of model. Ex. baseline-classification-model
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |