Skip to main content
Glama

Google Cloud DNS API MCP Server

main.py57.5 kB
# generated by fastapi-codegen: # filename: openapi.yaml # timestamp: 2025-06-29T01:59:07+00:00 import argparse import json import os from typing import * from typing import Optional from autogen.mcp.mcp_proxy import MCPProxy from autogen.mcp.mcp_proxy.security import BaseSecurity, UnsuportedSecurityStub from fastapi import Path, Query from models import ( Alt, Change, ChangesListResponse, DnsKey, DnsKeysListResponse, FieldXgafv, GoogleIamV1GetIamPolicyRequest, GoogleIamV1Policy, GoogleIamV1SetIamPolicyRequest, GoogleIamV1TestIamPermissionsRequest, GoogleIamV1TestIamPermissionsResponse, ManagedZone, ManagedZoneOperationsListResponse, ManagedZonesListResponse, Operation, PoliciesListResponse, PoliciesPatchResponse, PoliciesUpdateResponse, Policy, Project, ResourceRecordSet, ResourceRecordSetsListResponse, ResponsePoliciesListResponse, ResponsePoliciesPatchResponse, ResponsePoliciesUpdateResponse, ResponsePolicy, ResponsePolicyRule, ResponsePolicyRulesListResponse, ResponsePolicyRulesPatchResponse, ResponsePolicyRulesUpdateResponse, SortBy, SortBy2, ) app = MCPProxy( contact={'name': 'Google', 'url': 'https://google.com', 'x-twitter': 'youtube'}, description='', license={ 'name': 'Creative Commons Attribution 3.0', 'url': 'http://creativecommons.org/licenses/by/3.0/', }, termsOfService='https://developers.google.com/terms/', title='Cloud DNS API', version='v2', servers=[{'url': 'https://dns.googleapis.com/'}], ) @app.get( '/dns/v2/projects/{project}/locations/{location}', description=""" Fetches the representation of an existing Project. """, tags=['dns_zones_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_projects_get( project: str, location: str = ..., client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/dns/v2/projects/{project}/locations/{location}/managedZones', description=""" Enumerates ManagedZones that have been created but not yet deleted. """, tags=[ 'dns_zones_operations', 'dns_changes_operations', 'dns_record_sets_management', 'dns_keys_operations', 'dns_policies_operations', 'dns_response_policies_operations', 'dns_response_policy_rules_management', 'dns_iam_policies_management', ], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_managed_zones_list( project: str, location: str = ..., dns_name: Optional[str] = Query(None, alias='dnsName'), max_results: Optional[int] = Query(None, alias='maxResults'), page_token: Optional[str] = Query(None, alias='pageToken'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.post( '/dns/v2/projects/{project}/locations/{location}/managedZones', description=""" Creates a new ManagedZone. """, tags=['dns_zones_operations', 'dns_iam_policies_management'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_managed_zones_create( project: str, location: str = ..., client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), body: ManagedZone = None, ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.delete( '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}', description=""" Deletes a previously created ManagedZone. """, tags=['dns_zones_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_managed_zones_delete( project: str, location: str = ..., managed_zone: str = Path(..., alias='managedZone'), client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}', description=""" Fetches the representation of an existing ManagedZone. """, tags=['dns_zones_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_managed_zones_get( project: str, location: str = ..., managed_zone: str = Path(..., alias='managedZone'), client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.patch( '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}', description=""" Applies a partial update to an existing ManagedZone. """, tags=['dns_zones_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_managed_zones_patch( project: str, location: str = ..., managed_zone: str = Path(..., alias='managedZone'), client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), body: ManagedZone = None, ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.put( '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}', description=""" Updates an existing ManagedZone. """, tags=['dns_zones_operations', 'dns_iam_policies_management'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_managed_zones_update( project: str, location: str = ..., managed_zone: str = Path(..., alias='managedZone'), client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), body: ManagedZone = None, ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/changes', description=""" Enumerates Changes to a ResourceRecordSet collection. """, tags=['dns_zones_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_changes_list( project: str, location: str = ..., managed_zone: str = Path(..., alias='managedZone'), max_results: Optional[int] = Query(None, alias='maxResults'), page_token: Optional[str] = Query(None, alias='pageToken'), sort_by: Optional[SortBy] = Query(None, alias='sortBy'), sort_order: Optional[str] = Query(None, alias='sortOrder'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.post( '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/changes', description=""" Atomically updates the ResourceRecordSet collection. """, tags=['dns_changes_operations', 'dns_zones_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_changes_create( project: str, location: str = ..., managed_zone: str = Path(..., alias='managedZone'), client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), body: Change = None, ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/changes/{changeId}', description=""" Fetches the representation of an existing Change. """, tags=['dns_changes_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_changes_get( project: str, location: str = ..., managed_zone: str = Path(..., alias='managedZone'), change_id: str = Path(..., alias='changeId'), client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/dnsKeys', description=""" Enumerates DnsKeys to a ResourceRecordSet collection. """, tags=['dns_zones_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_dns_keys_list( project: str, location: str = ..., managed_zone: str = Path(..., alias='managedZone'), digest_type: Optional[str] = Query(None, alias='digestType'), max_results: Optional[int] = Query(None, alias='maxResults'), page_token: Optional[str] = Query(None, alias='pageToken'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}', description=""" Fetches the representation of an existing DnsKey. """, tags=['dns_zones_operations', 'dns_keys_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_dns_keys_get( project: str, location: str = ..., managed_zone: str = Path(..., alias='managedZone'), dns_key_id: str = Path(..., alias='dnsKeyId'), client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), digest_type: Optional[str] = Query(None, alias='digestType'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/operations', description=""" Enumerates Operations for the given ManagedZone. """, tags=['dns_zones_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_managed_zone_operations_list( project: str, location: str = ..., managed_zone: str = Path(..., alias='managedZone'), max_results: Optional[int] = Query(None, alias='maxResults'), page_token: Optional[str] = Query(None, alias='pageToken'), sort_by: Optional[SortBy2] = Query(None, alias='sortBy'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/operations/{operation}', description=""" Fetches the representation of an existing Operation. """, tags=['dns_zones_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_managed_zone_operations_get( project: str, location: str = ..., managed_zone: str = Path(..., alias='managedZone'), operation: str = ..., client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets', description=""" Enumerates ResourceRecordSets that you have created but not yet deleted. """, tags=[ 'dns_zones_operations', 'dns_changes_operations', 'dns_record_sets_management', ], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_resource_record_sets_list( project: str, location: str = ..., managed_zone: str = Path(..., alias='managedZone'), max_results: Optional[int] = Query(None, alias='maxResults'), name: Optional[str] = None, page_token: Optional[str] = Query(None, alias='pageToken'), type: Optional[str] = None, field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.post( '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets', description=""" Creates a new ResourceRecordSet. """, tags=['dns_record_sets_management', 'dns_zones_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_resource_record_sets_create( project: str, location: str = ..., managed_zone: str = Path(..., alias='managedZone'), client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), body: ResourceRecordSet = None, ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.delete( '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets/{name}/{type}', description=""" Deletes a previously created ResourceRecordSet. """, tags=['dns_zones_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_resource_record_sets_delete( project: str, location: str = ..., managed_zone: str = Path(..., alias='managedZone'), name: str = ..., type: str = ..., client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets/{name}/{type}', description=""" Fetches the representation of an existing ResourceRecordSet. """, tags=['dns_zones_operations', 'dns_record_sets_management'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_resource_record_sets_get( project: str, location: str = ..., managed_zone: str = Path(..., alias='managedZone'), name: str = ..., type: str = ..., client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.patch( '/dns/v2/projects/{project}/locations/{location}/managedZones/{managedZone}/rrsets/{name}/{type}', description=""" Applies a partial update to an existing ResourceRecordSet. """, tags=['dns_record_sets_management', 'dns_zones_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_resource_record_sets_patch( project: str, location: str = ..., managed_zone: str = Path(..., alias='managedZone'), name: str = ..., type: str = ..., client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), body: ResourceRecordSet = None, ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/dns/v2/projects/{project}/locations/{location}/policies', description=""" Enumerates all Policies associated with a project. """, tags=['dns_zones_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_policies_list( project: str, location: str = ..., max_results: Optional[int] = Query(None, alias='maxResults'), page_token: Optional[str] = Query(None, alias='pageToken'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.post( '/dns/v2/projects/{project}/locations/{location}/policies', description=""" Creates a new Policy. """, tags=['dns_policies_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_policies_create( project: str, location: str = ..., client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), body: Policy = None, ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.delete( '/dns/v2/projects/{project}/locations/{location}/policies/{policy}', description=""" Deletes a previously created Policy. Fails if the policy is still being referenced by a network. """, tags=['dns_policies_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_policies_delete( project: str, location: str = ..., policy: str = ..., client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/dns/v2/projects/{project}/locations/{location}/policies/{policy}', description=""" Fetches the representation of an existing Policy. """, tags=['dns_policies_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_policies_get( project: str, location: str = ..., policy: str = ..., client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.patch( '/dns/v2/projects/{project}/locations/{location}/policies/{policy}', description=""" Applies a partial update to an existing Policy. """, tags=['dns_policies_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_policies_patch( project: str, location: str = ..., policy: str = ..., client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), body: Policy = None, ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.put( '/dns/v2/projects/{project}/locations/{location}/policies/{policy}', description=""" Updates an existing Policy. """, tags=['dns_policies_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_policies_update( project: str, location: str = ..., policy: str = ..., client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), body: Policy = None, ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/dns/v2/projects/{project}/locations/{location}/responsePolicies', description=""" Enumerates all Response Policies associated with a project. """, tags=['dns_changes_operations', 'dns_zones_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_response_policies_list( project: str, location: str = ..., max_results: Optional[int] = Query(None, alias='maxResults'), page_token: Optional[str] = Query(None, alias='pageToken'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.post( '/dns/v2/projects/{project}/locations/{location}/responsePolicies', description=""" Creates a new Response Policy """, tags=['dns_response_policies_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_response_policies_create( project: str, location: str = ..., client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), body: ResponsePolicy = None, ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.delete( '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}', description=""" Deletes a previously created Response Policy. Fails if the response policy is non-empty or still being referenced by a network. """, tags=['dns_response_policies_operations', 'dns_response_policy_rules_management'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_response_policies_delete( project: str, location: str = ..., response_policy: str = Path(..., alias='responsePolicy'), client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}', description=""" Fetches the representation of an existing Response Policy. """, tags=['dns_response_policies_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_response_policies_get( project: str, location: str = ..., response_policy: str = Path(..., alias='responsePolicy'), client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.patch( '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}', description=""" Applies a partial update to an existing Response Policy. """, tags=['dns_response_policies_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_response_policies_patch( project: str, location: str = ..., response_policy: str = Path(..., alias='responsePolicy'), client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), body: ResponsePolicy = None, ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.put( '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}', description=""" Updates an existing Response Policy. """, tags=['dns_response_policies_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_response_policies_update( project: str, location: str = ..., response_policy: str = Path(..., alias='responsePolicy'), client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), body: ResponsePolicy = None, ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules', description=""" Enumerates all Response Policy Rules associated with a project. """, tags=['dns_response_policies_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_response_policy_rules_list( project: str, location: str = ..., response_policy: str = Path(..., alias='responsePolicy'), max_results: Optional[int] = Query(None, alias='maxResults'), page_token: Optional[str] = Query(None, alias='pageToken'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.post( '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules', description=""" Creates a new Response Policy Rule. """, tags=['dns_response_policy_rules_management', 'dns_response_policies_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_response_policy_rules_create( project: str, location: str = ..., response_policy: str = Path(..., alias='responsePolicy'), client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), body: ResponsePolicyRule = None, ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.delete( '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', description=""" Deletes a previously created Response Policy Rule. """, tags=['dns_response_policy_rules_management', 'dns_response_policies_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_response_policy_rules_delete( project: str, location: str = ..., response_policy: str = Path(..., alias='responsePolicy'), response_policy_rule: str = Path(..., alias='responsePolicyRule'), client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.get( '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', description=""" Fetches the representation of an existing Response Policy Rule. """, tags=['dns_response_policy_rules_management', 'dns_response_policies_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_response_policy_rules_get( project: str, location: str = ..., response_policy: str = Path(..., alias='responsePolicy'), response_policy_rule: str = Path(..., alias='responsePolicyRule'), client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.patch( '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', description=""" Applies a partial update to an existing Response Policy Rule. """, tags=['dns_response_policy_rules_management', 'dns_response_policies_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_response_policy_rules_patch( project: str, location: str = ..., response_policy: str = Path(..., alias='responsePolicy'), response_policy_rule: str = Path(..., alias='responsePolicyRule'), client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), body: ResponsePolicyRule = None, ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.put( '/dns/v2/projects/{project}/locations/{location}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', description=""" Updates an existing Response Policy Rule. """, tags=['dns_response_policy_rules_management', 'dns_response_policies_operations'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_response_policy_rules_update( project: str, location: str = ..., response_policy: str = Path(..., alias='responsePolicy'), response_policy_rule: str = Path(..., alias='responsePolicyRule'), client_operation_id: Optional[str] = Query(None, alias='clientOperationId'), field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), body: ResponsePolicyRule = None, ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.post( '/dns/v2/{resource}:getIamPolicy', description=""" Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. """, tags=['dns_iam_policies_management'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_managed_zones_get_iam_policy( resource: str, field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), body: GoogleIamV1GetIamPolicyRequest = None, ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.post( '/dns/v2/{resource}:setIamPolicy', description=""" Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. """, tags=['dns_iam_policies_management'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_managed_zones_set_iam_policy( resource: str, field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), body: GoogleIamV1SetIamPolicyRequest = None, ): raise RuntimeError("Should be patched by MCPProxy and never executed") @app.post( '/dns/v2/{resource}:testIamPermissions', description=""" Returns permissions that a caller has on the specified resource. If the resource does not exist, this returns an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. """, tags=['dns_iam_policies_management'], security=[ UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), UnsuportedSecurityStub(name="None"), ], ) def dns_managed_zones_test_iam_permissions( resource: str, field__xgafv: Optional[FieldXgafv] = Query(None, alias='$.xgafv'), access_token: Optional[str] = None, alt: Optional[Alt] = None, callback: Optional[str] = None, fields: Optional[str] = None, key: Optional[str] = None, oauth_token: Optional[str] = None, pretty_print: Optional[bool] = Query(None, alias='prettyPrint'), quota_user: Optional[str] = Query(None, alias='quotaUser'), upload_protocol: Optional[str] = None, upload_type: Optional[str] = Query(None, alias='uploadType'), body: GoogleIamV1TestIamPermissionsRequest = None, ): raise RuntimeError("Should be patched by MCPProxy and never executed") if __name__ == "__main__": parser = argparse.ArgumentParser(description="MCP Server") parser.add_argument( "transport", choices=["stdio", "sse", "streamable-http"], help="Transport mode (stdio, sse or streamable-http)", ) args = parser.parse_args() if "CONFIG_PATH" in os.environ: config_path = os.environ["CONFIG_PATH"] app.load_configuration(config_path) if "CONFIG" in os.environ: config = os.environ["CONFIG"] app.load_configuration_from_string(config) if "SECURITY" in os.environ: security_params = BaseSecurity.parse_security_parameters_from_env( os.environ, ) app.set_security_params(security_params) mcp_settings = json.loads(os.environ.get("MCP_SETTINGS", "{}")) app.get_mcp(**mcp_settings).run(transport=args.transport)

Latest Blog Posts

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/cloud-dns-api'

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