Esempio n. 1
0
 /// <summary>Snippet for CreatePredictionApiKeyRegistration</summary>
 public void CreatePredictionApiKeyRegistration()
 {
     // Snippet: CreatePredictionApiKeyRegistration(string, PredictionApiKeyRegistration, CallSettings)
     // Create client
     PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = PredictionApiKeyRegistryClient.Create();
     // Initialize request argument(s)
     string parent = "projects/[PROJECT]/locations/[LOCATION]/catalogs/[CATALOG]/eventStores/[EVENT_STORE]";
     PredictionApiKeyRegistration predictionApiKeyRegistration = new PredictionApiKeyRegistration();
     // Make the request
     PredictionApiKeyRegistration response = predictionApiKeyRegistryClient.CreatePredictionApiKeyRegistration(parent, predictionApiKeyRegistration);
     // End snippet
 }
Esempio n. 2
0
 /// <summary>Snippet for CreatePredictionApiKeyRegistration</summary>
 public void CreatePredictionApiKeyRegistrationResourceNames()
 {
     // Snippet: CreatePredictionApiKeyRegistration(EventStoreName, PredictionApiKeyRegistration, CallSettings)
     // Create client
     PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = PredictionApiKeyRegistryClient.Create();
     // Initialize request argument(s)
     EventStoreName parent = EventStoreName.FromProjectLocationCatalogEventStore("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]");
     PredictionApiKeyRegistration predictionApiKeyRegistration = new PredictionApiKeyRegistration();
     // Make the request
     PredictionApiKeyRegistration response = predictionApiKeyRegistryClient.CreatePredictionApiKeyRegistration(parent, predictionApiKeyRegistration);
     // End snippet
 }
Esempio n. 3
0
 /// <summary>Snippet for CreatePredictionApiKeyRegistration</summary>
 public void CreatePredictionApiKeyRegistrationRequestObject()
 {
     // Snippet: CreatePredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest, CallSettings)
     // Create client
     PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = PredictionApiKeyRegistryClient.Create();
     // Initialize request argument(s)
     CreatePredictionApiKeyRegistrationRequest request = new CreatePredictionApiKeyRegistrationRequest
     {
         ParentAsEventStoreName       = EventStoreName.FromProjectLocationCatalogEventStore("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"),
         PredictionApiKeyRegistration = new PredictionApiKeyRegistration(),
     };
     // Make the request
     PredictionApiKeyRegistration response = predictionApiKeyRegistryClient.CreatePredictionApiKeyRegistration(request);
     // End snippet
 }