1"""Generated client library for publicca version v1alpha1.""" 2# NOTE: This file is autogenerated and should not be edited by hand. 3 4from __future__ import absolute_import 5 6from apitools.base.py import base_api 7from googlecloudsdk.third_party.apis.publicca.v1alpha1 import publicca_v1alpha1_messages as messages 8 9 10class PubliccaV1alpha1(base_api.BaseApiClient): 11 """Generated client library for service publicca version v1alpha1.""" 12 13 MESSAGES_MODULE = messages 14 BASE_URL = 'https://publicca.googleapis.com/' 15 MTLS_BASE_URL = 'https://publicca.mtls.googleapis.com/' 16 17 _PACKAGE = 'publicca' 18 _SCOPES = ['https://www.googleapis.com/auth/cloud-platform'] 19 _VERSION = 'v1alpha1' 20 _CLIENT_ID = '1042881264118.apps.googleusercontent.com' 21 _CLIENT_SECRET = 'x_Tw5K8nnjoRAqULM9PFAC2b' 22 _USER_AGENT = 'google-cloud-sdk' 23 _CLIENT_CLASS_NAME = 'PubliccaV1alpha1' 24 _URL_VERSION = 'v1alpha1' 25 _API_KEY = None 26 27 def __init__(self, url='', credentials=None, 28 get_credentials=True, http=None, model=None, 29 log_request=False, log_response=False, 30 credentials_args=None, default_global_params=None, 31 additional_http_headers=None, response_encoding=None): 32 """Create a new publicca handle.""" 33 url = url or self.BASE_URL 34 super(PubliccaV1alpha1, self).__init__( 35 url, credentials=credentials, 36 get_credentials=get_credentials, http=http, model=model, 37 log_request=log_request, log_response=log_response, 38 credentials_args=credentials_args, 39 default_global_params=default_global_params, 40 additional_http_headers=additional_http_headers, 41 response_encoding=response_encoding) 42 self.projects_locations_externalAccountKeys = self.ProjectsLocationsExternalAccountKeysService(self) 43 self.projects_locations = self.ProjectsLocationsService(self) 44 self.projects = self.ProjectsService(self) 45 46 class ProjectsLocationsExternalAccountKeysService(base_api.BaseApiService): 47 """Service class for the projects_locations_externalAccountKeys resource.""" 48 49 _NAME = 'projects_locations_externalAccountKeys' 50 51 def __init__(self, client): 52 super(PubliccaV1alpha1.ProjectsLocationsExternalAccountKeysService, self).__init__(client) 53 self._upload_configs = { 54 } 55 56 def Create(self, request, global_params=None): 57 r"""Creates a new ExternalAccountKey bound to the project. 58 59 Args: 60 request: (PubliccaProjectsLocationsExternalAccountKeysCreateRequest) input message 61 global_params: (StandardQueryParameters, default: None) global arguments 62 Returns: 63 (ExternalAccountKey) The response message. 64 """ 65 config = self.GetMethodConfig('Create') 66 return self._RunMethod( 67 config, request, global_params=global_params) 68 69 Create.method_config = lambda: base_api.ApiMethodInfo( 70 flat_path='v1alpha1/projects/{projectsId}/locations/{locationsId}/externalAccountKeys', 71 http_method='POST', 72 method_id='publicca.projects.locations.externalAccountKeys.create', 73 ordered_params=['parent'], 74 path_params=['parent'], 75 query_params=[], 76 relative_path='v1alpha1/{+parent}/externalAccountKeys', 77 request_field='externalAccountKey', 78 request_type_name='PubliccaProjectsLocationsExternalAccountKeysCreateRequest', 79 response_type_name='ExternalAccountKey', 80 supports_download=False, 81 ) 82 83 class ProjectsLocationsService(base_api.BaseApiService): 84 """Service class for the projects_locations resource.""" 85 86 _NAME = 'projects_locations' 87 88 def __init__(self, client): 89 super(PubliccaV1alpha1.ProjectsLocationsService, self).__init__(client) 90 self._upload_configs = { 91 } 92 93 class ProjectsService(base_api.BaseApiService): 94 """Service class for the projects resource.""" 95 96 _NAME = 'projects' 97 98 def __init__(self, client): 99 super(PubliccaV1alpha1.ProjectsService, self).__init__(client) 100 self._upload_configs = { 101 } 102