コード例 #1
0
        /// <summary>Snippet for CreateSchemaAsync</summary>
        public async Task CreateSchemaAsync()
        {
            // Snippet: CreateSchemaAsync(string, Schema, string, CallSettings)
            // Additional: CreateSchemaAsync(string, Schema, string, CancellationToken)
            // Create client
            SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();

            // Initialize request argument(s)
            string parent   = "projects/[PROJECT]";
            Schema schema   = new Schema();
            string schemaId = "";
            // Make the request
            Schema response = await schemaServiceClient.CreateSchemaAsync(parent, schema, schemaId);

            // End snippet
        }
コード例 #2
0
        /// <summary>Snippet for CreateSchemaAsync</summary>
        public async Task CreateSchemaResourceNamesAsync()
        {
            // Snippet: CreateSchemaAsync(ProjectName, Schema, string, CallSettings)
            // Additional: CreateSchemaAsync(ProjectName, Schema, string, CancellationToken)
            // Create client
            SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();

            // Initialize request argument(s)
            ProjectName parent   = ProjectName.FromProject("[PROJECT]");
            Schema      schema   = new Schema();
            string      schemaId = "";
            // Make the request
            Schema response = await schemaServiceClient.CreateSchemaAsync(parent, schema, schemaId);

            // End snippet
        }
コード例 #3
0
        /// <summary>Snippet for CreateSchemaAsync</summary>
        public async Task CreateSchemaRequestObjectAsync()
        {
            // Snippet: CreateSchemaAsync(CreateSchemaRequest, CallSettings)
            // Additional: CreateSchemaAsync(CreateSchemaRequest, CancellationToken)
            // Create client
            SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync();

            // Initialize request argument(s)
            CreateSchemaRequest request = new CreateSchemaRequest
            {
                ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
                Schema   = new Schema(),
                SchemaId = "",
            };
            // Make the request
            Schema response = await schemaServiceClient.CreateSchemaAsync(request);

            // End snippet
        }