Skip to main content
Glama
models.py18.8 kB
# generated by fastapi-codegen: # filename: openapi.yaml # timestamp: 2025-06-29T02:11:42+00:00 from __future__ import annotations from enum import Enum from typing import Any, Dict, List, Optional from pydantic import BaseModel, Field class LogType(Enum): LOG_TYPE_UNSPECIFIED = 'LOG_TYPE_UNSPECIFIED' ADMIN_READ = 'ADMIN_READ' DATA_WRITE = 'DATA_WRITE' DATA_READ = 'DATA_READ' class AuditLogConfig(BaseModel): exemptedMembers: Optional[List[str]] = Field( None, description='Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.', ) ignoreChildExemptions: Optional[bool] = None logType: Optional[LogType] = Field( None, description='The log type that this config enables.' ) class PermissionType(Enum): PERMISSION_TYPE_UNSPECIFIED = 'PERMISSION_TYPE_UNSPECIFIED' ADMIN_READ = 'ADMIN_READ' ADMIN_WRITE = 'ADMIN_WRITE' DATA_READ = 'DATA_READ' DATA_WRITE = 'DATA_WRITE' class AuthorizationLoggingOptions(BaseModel): permissionType: Optional[PermissionType] = Field( None, description='The type of the permission that was checked.' ) class CancelOperationRequest(BaseModel): pass class LogName(Enum): UNSPECIFIED_LOG_NAME = 'UNSPECIFIED_LOG_NAME' ADMIN_ACTIVITY = 'ADMIN_ACTIVITY' DATA_ACCESS = 'DATA_ACCESS' class CloudAuditOptions(BaseModel): authorizationLoggingOptions: Optional[AuthorizationLoggingOptions] = Field( None, description='Information used by the Cloud Audit Logging pipeline.' ) logName: Optional[LogName] = Field( None, description='The log_name to populate in the Cloud Audit Record.' ) class Iam(Enum): NO_ATTR = 'NO_ATTR' AUTHORITY = 'AUTHORITY' ATTRIBUTION = 'ATTRIBUTION' SECURITY_REALM = 'SECURITY_REALM' APPROVER = 'APPROVER' JUSTIFICATION_TYPE = 'JUSTIFICATION_TYPE' CREDENTIALS_TYPE = 'CREDENTIALS_TYPE' CREDS_ASSERTION = 'CREDS_ASSERTION' class Op(Enum): NO_OP = 'NO_OP' EQUALS = 'EQUALS' NOT_EQUALS = 'NOT_EQUALS' IN = 'IN' NOT_IN = 'NOT_IN' DISCHARGED = 'DISCHARGED' class Sys(Enum): NO_ATTR = 'NO_ATTR' REGION = 'REGION' SERVICE = 'SERVICE' NAME = 'NAME' IP = 'IP' class Condition(BaseModel): iam: Optional[Iam] = Field( None, description='Trusted attributes supplied by the IAM system.' ) op: Optional[Op] = Field(None, description='An operator to apply the subject with.') svc: Optional[str] = Field( None, description='Trusted attributes discharged by the service.' ) sys: Optional[Sys] = Field( None, description='Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.', ) values: Optional[List[str]] = Field( None, description='The objects of the condition.' ) class CustomField(BaseModel): name: Optional[str] = Field(None, description='Name is the field name.') value: Optional[str] = Field( None, description='Value is the field value. It is important that in contrast to the CounterOptions.field, the value here is a constant that is not derived from the IAMContext.', ) class LogMode(Enum): LOG_MODE_UNSPECIFIED = 'LOG_MODE_UNSPECIFIED' LOG_FAIL_CLOSED = 'LOG_FAIL_CLOSED' class DataAccessOptions(BaseModel): logMode: Optional[LogMode] = None class Empty(BaseModel): pass class Expr(BaseModel): description: Optional[str] = Field( None, description='Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.', ) expression: Optional[str] = Field( None, description='Textual representation of an expression in Common Expression Language syntax.', ) location: Optional[str] = Field( None, description='Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.', ) title: Optional[str] = Field( None, description='Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.', ) class Location(BaseModel): displayName: Optional[str] = Field( None, description='The friendly name for this location, typically a nearby city name. For example, "Tokyo".', ) labels: Optional[Dict[str, str]] = Field( None, description='Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}', ) locationId: Optional[str] = Field( None, description='The canonical id for this location. For example: `"us-east1"`.', ) metadata: Optional[Dict[str, Any]] = Field( None, description='Service-specific metadata. For example the available capacity at the given location.', ) name: Optional[str] = Field( None, description='Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"`', ) class Action(Enum): NO_ACTION = 'NO_ACTION' ALLOW = 'ALLOW' ALLOW_WITH_LOG = 'ALLOW_WITH_LOG' DENY = 'DENY' DENY_WITH_LOG = 'DENY_WITH_LOG' LOG = 'LOG' class Status(BaseModel): code: Optional[int] = Field( None, description='The status code, which should be an enum value of google.rpc.Code.', ) details: Optional[List[Dict[str, Any]]] = Field( None, description='A list of messages that carry the error details. There is a common set of message types for APIs to use.', ) message: Optional[str] = Field( None, description='A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.', ) class TestIamPermissionsRequest(BaseModel): permissions: Optional[List[str]] = Field( None, description='The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).', ) class TestIamPermissionsResponse(BaseModel): permissions: Optional[List[str]] = Field( None, description='A subset of `TestPermissionsRequest.permissions` that the caller is allowed.', ) class FieldXgafv(Enum): field_1 = '1' field_2 = '2' class Alt(Enum): json = 'json' media = 'media' proto = 'proto' class AuditConfig(BaseModel): auditLogConfigs: Optional[List[AuditLogConfig]] = Field( None, description='The configuration for logging of each type of permission.' ) service: Optional[str] = Field( None, description='Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.', ) class Binding(BaseModel): bindingId: Optional[str] = None condition: Optional[Expr] = Field( None, description='The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).', ) members: Optional[List[str]] = Field( None, description='Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.', ) role: Optional[str] = Field( None, description='Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.', ) class CounterOptions(BaseModel): customFields: Optional[List[CustomField]] = Field( None, description='Custom fields.' ) field: Optional[str] = Field(None, description='The field value to attribute.') metric: Optional[str] = Field(None, description='The metric to update.') class ListLocationsResponse(BaseModel): locations: Optional[List[Location]] = Field( None, description='A list of locations that matches the specified filter in the request.', ) nextPageToken: Optional[str] = Field( None, description='The standard List next-page token.' ) class LogConfig(BaseModel): cloudAudit: Optional[CloudAuditOptions] = Field( None, description='Cloud audit options.' ) counter: Optional[CounterOptions] = Field(None, description='Counter options.') dataAccess: Optional[DataAccessOptions] = Field( None, description='Data access options.' ) class Operation(BaseModel): done: Optional[bool] = Field( None, description='If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.', ) error: Optional[Status] = Field( None, description='The error result of the operation in case of failure or cancellation.', ) metadata: Optional[Dict[str, Any]] = Field( None, description='Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.', ) name: Optional[str] = Field( None, description='The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.', ) response: Optional[Dict[str, Any]] = Field( None, description='The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.', ) class Rule(BaseModel): action: Optional[Action] = Field(None, description='Required') conditions: Optional[List[Condition]] = Field( None, description='Additional restrictions that must be met. All conditions must pass for the rule to match.', ) description: Optional[str] = Field( None, description='Human-readable description of the rule.' ) in_: Optional[List[str]] = Field( None, alias='in', description="If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.", ) logConfig: Optional[List[LogConfig]] = Field( None, description='The config returned to callers of CheckPolicy for any entries that match the LOG action.', ) notIn: Optional[List[str]] = Field( None, description="If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. The format for in and not_in entries can be found at in the Local IAM documentation (see go/local-iam#features).", ) permissions: Optional[List[str]] = Field( None, description="A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.", ) class ListOperationsResponse(BaseModel): nextPageToken: Optional[str] = Field( None, description='The standard List next-page token.' ) operations: Optional[List[Operation]] = Field( None, description='A list of operations that matches the specified filter in the request.', ) class Policy(BaseModel): auditConfigs: Optional[List[AuditConfig]] = Field( None, description='Specifies cloud audit logging configuration for this policy.' ) bindings: Optional[List[Binding]] = Field( None, description='Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.', ) etag: Optional[str] = Field( None, description='`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.', ) rules: Optional[List[Rule]] = Field( None, description='If more than one rule is specified, the rules are applied in the following manner: - All matching LOG rules are always applied. - If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if one or more matching rule requires logging. - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if one or more matching rule requires logging. - Otherwise, if no rule applies, permission is denied.', ) version: Optional[int] = Field( None, description='Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).', ) class SetIamPolicyRequest(BaseModel): policy: Optional[Policy] = Field( None, description='REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them.', ) updateMask: Optional[str] = Field( None, description='OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: "bindings, etag"`', )

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ag2-mcp-servers/game-services-api'

If you have feedback or need assistance with the MCP directory API, please join our Discord server