code: func (p *GRPCProvider) getResourceSchema(name string) providers.Schema {
  	schema := p.getSchema()
  	resSchema, ok := schema.ResourceTypes[name]
  	if !ok {
  		panic("unknown resource type " + name)
  	}
  	return resSchema
  }
docs: // getResourceSchema is a helper to extract the schema for a resource, and
  // panics if the schema is not available.